Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-settings.php

    r9596 r10434  
    1616        @ini_set('memory_limit', WP_MEMORY_LIMIT);
    1717
     18set_magic_quotes_runtime(0);
     19@ini_set('magic_quotes_sybase', 0);
    1820
    1921/**
    … …  
    200202        error_reporting(E_ALL);
    201203} else {
    202         error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
     204        // Unicode Extension is in PHP 6.0 only or do version check when this changes.
     205        if ( function_exists('unicode_decode') )
     206                error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT );
     207        else if ( defined( 'E_DEPRECATED' ) ) // Introduced in PHP 5.3
     208                error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE );
     209        else
     210                error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
    203211}
    204212
Note: See TracChangeset for help on using the changeset viewer.