Make WordPress Core

Changeset 24288


Ignore:
Timestamp:
05/17/2013 08:44:54 PM (12 years ago)
Author:
nacin
Message:

When WP_DEBUG, set PHP error_reporting level to E_ALL. This will include E_DEPRECATED in PHP 5.3, and E_STRICT in PHP 5.4.

fixes #24357.

File:
1 edited

Legend:

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

    r23947 r24288  
    259259function wp_debug_mode() {
    260260    if ( WP_DEBUG ) {
    261         // E_DEPRECATED is a core PHP constant in PHP 5.3. Don't define this yourself.
    262         // The two statements are equivalent, just one is for 5.3+ and for less than 5.3.
    263         if ( defined( 'E_DEPRECATED' ) )
    264             error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
    265         else
    266             error_reporting( E_ALL );
     261        error_reporting( E_ALL );
    267262
    268263        if ( WP_DEBUG_DISPLAY )
Note: See TracChangeset for help on using the changeset viewer.