Plugin Directory

Changeset 1407853


Ignore:
Timestamp:
04/29/2016 11:47:09 PM (10 years ago)
Author:
andrewklimek
Message:

add script_debug to example config

Location:
debug-log
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debug-log/tags/0.3/debug-log.php

    r1392398 r1407853  
    2222*/
    2323
    24 function ajk_debug_log() {
     24function i86j_debug_log() {
    2525   
    2626    $toobig = apply_filters( 'debug_log_too_big', 5 );// how many MB throws a warning?
     
    3535define( 'WP_DEBUG', true );// just toggle this line to false to turn off
    3636if ( WP_DEBUG ) {
     37    define( 'WP_DEBUG_DISPLAY', false );
    3738    define( 'WP_DEBUG_LOG', true );
    38     define( 'WP_DEBUG_DISPLAY', false );
    3939    @ini_set( 'display_errors', 0 );
     40    define( 'SCRIPT_DEBUG', true );
    4041}
    4142</pre><?php
     
    111112    echo '</div>';
    112113}
    113 add_action( 'admin_menu', function() { add_submenu_page( 'tools.php', 'Debug Log', 'Debug Log', 'manage_options', 'debug_log', 'ajk_debug_log' ); } );
     114add_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  
    2222*/
    2323
    24 function ajk_debug_log() {
     24function i86j_debug_log() {
    2525   
    2626    $toobig = apply_filters( 'debug_log_too_big', 5 );// how many MB throws a warning?
     
    3535define( 'WP_DEBUG', true );// just toggle this line to false to turn off
    3636if ( WP_DEBUG ) {
     37    define( 'WP_DEBUG_DISPLAY', false );
    3738    define( 'WP_DEBUG_LOG', true );
    38     define( 'WP_DEBUG_DISPLAY', false );
    3939    @ini_set( 'display_errors', 0 );
     40    define( 'SCRIPT_DEBUG', true );
    4041}
    4142</pre><?php
     
    111112    echo '</div>';
    112113}
    113 add_action( 'admin_menu', function() { add_submenu_page( 'tools.php', 'Debug Log', 'Debug Log', 'manage_options', 'debug_log', 'ajk_debug_log' ); } );
     114add_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.