Changeset 1125422
- Timestamp:
- 04/01/2015 02:27:37 PM (11 years ago)
- Location:
- angry-creative-logger/trunk
- Files:
-
- 5 edited
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
routines/git_status.php (modified) (2 diffs)
-
routines/js_errors.php (modified) (1 diff)
-
routines/site_change.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
angry-creative-logger/trunk/plugin.php
r1125402 r1125422 4 4 Plugin URI: http://angrycreative.se 5 5 Description: Inspects and logs possible issues with your Wordpress installation. 6 Version: 0. 5.46 Version: 0.6.0 7 7 Author: Robin Björklund, Sammy Nordström, Angry Creative AB 8 8 */ 9 9 10 define( 'ACI_PLUGIN_VERSION', '0. 5.4' );10 define( 'ACI_PLUGIN_VERSION', '0.6.0' ); 11 11 12 12 define( 'ACI_PLUGIN_DIR', dirname( __FILE__ ) ); -
angry-creative-logger/trunk/readme.txt
r1125402 r1125422 4 4 Requires at least: 4.0 5 5 Tested up to: 4.1.1 6 Stable tag: 0. 5.46 Stable tag: 0.6.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 22 22 == Changelog == 23 23 24 = 0.6.x = 25 * New routine for checking mysql database collations 26 * New routine for logging user profile updates 27 * New routine for logging new user registrations 28 * New routine for logging new site registrations 29 * Fixed a bug in the routine for javascript errors that prevented browser debugging 30 * Added function for downloading log file 31 * Better log file display in wp-admin 32 24 33 = 0.5.x = 25 * New routine for checking mysql database collations26 34 * New routine for logging javascript errors 27 35 * New routine for logging user capability changes -
angry-creative-logger/trunk/routines/git_status.php
r958063 r1125422 56 56 } 57 57 58 if ( !is_array($routine_options['ignore_files']) ) { 59 $routine_options['ignore_files'] = array(); 58 if ( empty( $routine_options['ignore_files'] ) ) { 59 $routine_options['ignore_files'] = self::$_default_ignore_files; 60 } else if ( !is_array( $routine_options['ignore_files'] ) ) { 61 $routine_options['ignore_files'] = (array) $routine_options['ignore_files']; 60 62 } 61 63 … … 97 99 98 100 $routine_options['changed_files'] = $changed_files; 101 99 102 ACI_Routine_Handler::set_options( __CLASS__, $routine_options ); 100 103 -
angry-creative-logger/trunk/routines/js_errors.php
r943417 r1125422 56 56 "&e=" + encodeURIComponent(errorObj); 57 57 } 58 return true;58 return false; 59 59 } 60 60 </script> -
angry-creative-logger/trunk/routines/site_change.php
r943414 r1125422 5 5 */ 6 6 7 class ACI_Routine_Log_Site_Change{7 if ( is_multisite() && is_plugin_active_for_network( ACI_PLUGIN_BASENAME ) ) { 8 8 9 c onst LOG_LEVEL = "warning";9 class ACI_Routine_Log_Site_Change { 10 10 11 const DESCRIPTION = "Logs if a site in the network has been activated or deactivated.";11 const LOG_LEVEL = "warning"; 12 12 13 public static function register() {13 const DESCRIPTION = "Logs if a site in the network has been activated or deactivated."; 14 14 15 $default_options = array( 'log_level' => self::LOG_LEVEL, 16 'description' => self::DESCRIPTION ); 17 18 aci_register_routine( __CLASS__, $default_options, "activate_blog", 10, 1 ); 19 aci_register_routine( __CLASS__, $default_options, "deactivate_blog", 10, 1 ); 15 public static function register() { 16 17 $default_options = array( 'log_level' => self::LOG_LEVEL, 18 'description' => self::DESCRIPTION ); 19 20 aci_register_routine( __CLASS__, $default_options, "activate_blog", 10, 1 ); 21 aci_register_routine( __CLASS__, $default_options, "deactivate_blog", 10, 1 ); 22 23 } 24 25 public static function inspect( $site ) { 26 27 $user = wp_get_current_user(); 28 $usermsg = ($user instanceof WP_User) ? ' (user: '.$user->user_login.')' : ''; 29 30 switch( current_filter() ) { 31 case 'activate_blog': 32 $status = 'activated'; 33 break; 34 case 'deactivate_blog': 35 $status = 'deactivated'; 36 break; 37 } 38 39 $message = 'Site ' . get_blog_details($site)->blogname . ' (id: '.$site . ')' . ' was ' . $status . $usermsg; 40 41 AC_Inspector::log( $message, __CLASS__ ); 42 43 return ""; 44 45 } 20 46 21 47 } 22 48 23 public static function inspect( $site ) { 24 25 $user = wp_get_current_user(); 26 $usermsg = ($user instanceof WP_User) ? ' (user: '.$user->user_login.')' : ''; 27 28 switch( current_filter() ) { 29 case 'activate_blog': 30 $status = 'activated'; 31 break; 32 case 'deactivate_blog': 33 $status = 'deactivated'; 34 break; 35 } 36 37 $message = 'Site ' . get_blog_details($site)->blogname . ' (id: '.$site . ')' . ' was ' . $status . $usermsg; 38 39 AC_Inspector::log( $message, __CLASS__ ); 40 41 return ""; 42 43 } 49 ACI_Routine_Log_Site_Change::register(); 44 50 45 51 } 46 47 ACI_Routine_Log_Site_Change::register();
Note: See TracChangeset
for help on using the changeset viewer.