Changeset 1407853
- Timestamp:
- 04/29/2016 11:47:09 PM (10 years ago)
- Location:
- debug-log
- Files:
-
- 2 edited
-
tags/0.3/debug-log.php (modified) (3 diffs)
-
trunk/debug-log.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
debug-log/tags/0.3/debug-log.php
r1392398 r1407853 22 22 */ 23 23 24 function ajk_debug_log() {24 function i86j_debug_log() { 25 25 26 26 $toobig = apply_filters( 'debug_log_too_big', 5 );// how many MB throws a warning? … … 35 35 define( 'WP_DEBUG', true );// just toggle this line to false to turn off 36 36 if ( WP_DEBUG ) { 37 define( 'WP_DEBUG_DISPLAY', false ); 37 38 define( 'WP_DEBUG_LOG', true ); 38 define( 'WP_DEBUG_DISPLAY', false );39 39 @ini_set( 'display_errors', 0 ); 40 define( 'SCRIPT_DEBUG', true ); 40 41 } 41 42 </pre><?php … … 111 112 echo '</div>'; 112 113 } 113 add_action( 'admin_menu', function() { add_submenu_page( 'tools.php', 'Debug Log', 'Debug Log', 'manage_options', 'debug_log', ' ajk_debug_log' ); } );114 add_action( 'admin_menu', function() { add_submenu_page( 'tools.php', 'Debug Log', 'Debug Log', 'manage_options', 'debug_log', 'i86j_debug_log' ); } ); -
debug-log/trunk/debug-log.php
r1392398 r1407853 22 22 */ 23 23 24 function ajk_debug_log() {24 function i86j_debug_log() { 25 25 26 26 $toobig = apply_filters( 'debug_log_too_big', 5 );// how many MB throws a warning? … … 35 35 define( 'WP_DEBUG', true );// just toggle this line to false to turn off 36 36 if ( WP_DEBUG ) { 37 define( 'WP_DEBUG_DISPLAY', false ); 37 38 define( 'WP_DEBUG_LOG', true ); 38 define( 'WP_DEBUG_DISPLAY', false );39 39 @ini_set( 'display_errors', 0 ); 40 define( 'SCRIPT_DEBUG', true ); 40 41 } 41 42 </pre><?php … … 111 112 echo '</div>'; 112 113 } 113 add_action( 'admin_menu', function() { add_submenu_page( 'tools.php', 'Debug Log', 'Debug Log', 'manage_options', 'debug_log', ' ajk_debug_log' ); } );114 add_action( 'admin_menu', function() { add_submenu_page( 'tools.php', 'Debug Log', 'Debug Log', 'manage_options', 'debug_log', 'i86j_debug_log' ); } );
Note: See TracChangeset
for help on using the changeset viewer.