Changeset 839072
- Timestamp:
- 01/15/2014 02:45:13 PM (12 years ago)
- Location:
- angry-creative-logger/trunk
- Files:
-
- 4 edited
-
classes/routine_handler.php (modified) (4 diffs)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
routines.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
angry-creative-logger/trunk/classes/routine_handler.php
r839003 r839072 2 2 /* 3 3 Class name: ACI Routine Handler 4 Version: 0.1 4 Version: 0.1.1 5 5 Depends: AC Inspector 0.3.x 6 6 Author: Sammy Nordström, Angry Creative AB … … 79 79 } 80 80 81 if ( in_array($action, self::$routine_events[$routine]) ) { 82 return false; 83 } 84 81 85 self::$routine_events[$routine][] = $action; 82 83 if ( $action == "ac_inspection" || has_action( $action ) ) {84 add_action( $action, $routine, $priority, $accepted_args );85 }86 86 87 87 if ( !empty( $options ) ) { … … 95 95 } 96 96 97 add_action( $action, $routine, $priority, $accepted_args ); 98 97 99 return true; 98 100 … … 105 107 } 106 108 107 if ( is_array(self::$routine_events[$routine]) && count(self::$routine_events[$routine]) > 0 ) { 108 109 if ( $action_key = array_search( $action, self::$routine_events[$routine] ) ) { 110 111 remove_action( $routine_events[$routine][$action_key], $routine, $priority ); 112 113 } 114 115 unset(self::$routine_events[$routine]); 116 return true; 117 118 } 119 120 return false; 109 if ( !is_array(self::$routine_events[$routine]) || count(self::$routine_events[$routine]) == 0 ) { 110 return false; 111 } 112 113 if ( $action_key = array_search( $action, self::$routine_events[$routine] ) ) { 114 115 remove_action( $routine_events[$routine][$action_key], $routine, $priority ); 116 117 } 118 119 unset(self::$routine_events[$routine]); 120 121 return true; 121 122 122 123 } -
angry-creative-logger/trunk/plugin.php
r839033 r839072 4 4 Plugin URI: http://angrycreative.se 5 5 Description: Inspects and logs possible issues with your Wordpress installation. 6 Version: 0.3. 16 Version: 0.3.2 7 7 Author: Robin Björklund, Sammy Nordström, Angry Creative AB 8 8 */ -
angry-creative-logger/trunk/readme.txt
r839033 r839072 4 4 Requires at least: 3.0.1 5 5 Tested up to: 3.8 6 Stable tag: 0.3. 16 Stable tag: 0.3.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
angry-creative-logger/trunk/routines.php
r839033 r839072 170 170 AC_Inspector::log($message, __FUNCTION__); 171 171 172 return ""; 173 172 174 } 173 175 … … 184 186 AC_Inspector::log($message, __FUNCTION__); 185 187 188 return ""; 189 186 190 } 187 191 … … 193 197 // AC_Inspector::log($mail, __FUNCTION__); 194 198 195 } 196 197 199 return ""; 200 201 } 202 203
Note: See TracChangeset
for help on using the changeset viewer.