WordPress.org

Make WordPress Core

Ticket #10132: 10132-disable-PHP-Warning.patch

File 10132-disable-PHP-Warning.patch, 710 bytes (added by peaceablewhale, 5 years ago)
  • wp-settings.php

     
    205205        error_reporting(E_ALL); 
    206206} else { 
    207207        if ( defined('E_RECOVERABLE_ERROR') ) 
    208                 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR); 
     208                error_reporting(E_ERROR | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR); 
    209209        else 
    210                 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING); 
     210                error_reporting(E_ERROR | E_PARSE | E_USER_ERROR | E_USER_WARNING); 
    211211} 
    212212 
    213213// For an advanced caching plugin to use, static because you would only want one