Ticket #33112: 33112.1.patch
File 33112.1.patch, 4.0 KB (added by , 10 years ago) |
---|
-
tools/i18n/pot-ext-meta.php
67 67 68 68 $included_files = get_included_files(); 69 69 if ($included_files[0] == __FILE__) { 70 ini_set('display_errors', 1);70 @ini_set('display_errors', 1); 71 71 $potextmeta = new PotExtMeta; 72 72 if (!isset($argv[1])) { 73 73 $potextmeta->usage(); -
tests/phpunit/includes/testcase-ajax.php
162 162 protected function _handleAjax($action) { 163 163 164 164 // Start output buffering 165 ini_set( 'implicit_flush', false );165 @ini_set( 'implicit_flush', false ); 166 166 ob_start(); 167 167 168 168 // Build the request -
tests/phpunit/includes/testcase.php
34 34 $wpdb->suppress_errors = false; 35 35 $wpdb->show_errors = true; 36 36 $wpdb->db_connect(); 37 ini_set('display_errors', 1 );37 @ini_set('display_errors', 1 ); 38 38 $this->factory = new WP_UnitTest_Factory; 39 39 $this->clean_up_global_scope(); 40 40 -
src/wp-includes/class-phpmailer.php
1203 1203 } 1204 1204 if ($this->Sender != '' and !ini_get('safe_mode')) { 1205 1205 $old_from = ini_get('sendmail_from'); 1206 ini_set('sendmail_from', $this->Sender);1206 @ini_set('sendmail_from', $this->Sender); 1207 1207 } 1208 1208 $result = false; 1209 1209 if ($this->SingleTo && count($toArr) > 1) { … … 1216 1216 $this->doCallback($result, $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From); 1217 1217 } 1218 1218 if (isset($old_from)) { 1219 ini_set('sendmail_from', $old_from);1219 @ini_set('sendmail_from', $old_from); 1220 1220 } 1221 1221 if (!$result) { 1222 1222 throw new phpmailerException($this->lang('instantiate'), self::STOP_CRITICAL); … … 2358 2358 //Doesn't exist in PHP 5.4, but we don't need to check because 2359 2359 //get_magic_quotes_runtime always returns false in 5.4+ 2360 2360 //so it will never get here 2361 ini_set('magic_quotes_runtime', false);2361 @ini_set('magic_quotes_runtime', false); 2362 2362 } 2363 2363 } 2364 2364 $file_buffer = file_get_contents($path); … … 2367 2367 if (version_compare(PHP_VERSION, '5.3.0', '<')) { 2368 2368 set_magic_quotes_runtime($magic_quotes); 2369 2369 } else { 2370 ini_set('magic_quotes_runtime', $magic_quotes);2370 @ini_set('magic_quotes_runtime', $magic_quotes); 2371 2371 } 2372 2372 } 2373 2373 return $file_buffer; -
src/wp-includes/load.php
270 270 error_reporting( E_ALL ); 271 271 272 272 if ( WP_DEBUG_DISPLAY ) 273 ini_set( 'display_errors', 1 );273 @ini_set( 'display_errors', 1 ); 274 274 elseif ( null !== WP_DEBUG_DISPLAY ) 275 ini_set( 'display_errors', 0 );275 @ini_set( 'display_errors', 0 ); 276 276 277 277 if ( WP_DEBUG_LOG ) { 278 ini_set( 'log_errors', 1 );279 ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );278 @ini_set( 'log_errors', 1 ); 279 @ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' ); 280 280 } 281 281 } else { 282 282 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); 283 283 } 284 284 if ( defined( 'XMLRPC_REQUEST' ) ) 285 ini_set( 'display_errors', 0 );285 @ini_set( 'display_errors', 0 ); 286 286 } 287 287 288 288 /**