WordPress.org

Make WordPress Core

Changeset 17194


Ignore:
Timestamp:
12/31/10 21:01:30 (3 years ago)
Author:
nacin
Message:

Add a note about E_DEPRECATED in wp_debug_mode() because I keep seeing reports about people trying to define it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r17080 r17194  
    257257function wp_debug_mode() { 
    258258    if ( WP_DEBUG ) { 
     259        // E_DEPRECATED is a core PHP constant in PHP 5.3. Don't define this yourself. 
     260        // The two statements are equivalent, just one is for 5.3+ and for less than 5.3. 
    259261        if ( defined( 'E_DEPRECATED' ) ) 
    260262            error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT ); 
Note: See TracChangeset for help on using the changeset viewer.