Ticket #11090: 11090_3.patch
| File 11090_3.patch, 4.8 KB (added by , 17 years ago) |
|---|
-
wp-includes/functions.php
2933 2933 * to get the backtrace up to what file and function called the deprecated 2934 2934 * function. 2935 2935 * 2936 * The current behavior is to trigger an user error if WP_DEBUG is defined and2936 * The current behavior is to trigger an user error if WP_DEBUG 2937 2937 * is true. 2938 2938 * 2939 2939 * This function is to be used in every function in depreceated.php … … 2955 2955 do_action('deprecated_function_run', $function, $replacement); 2956 2956 2957 2957 // Allow plugin to filter the output error trigger 2958 if( defined('WP_DEBUG') && ( true === WP_DEBUG )&& apply_filters( 'deprecated_function_trigger_error', true )) {2958 if( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true )) { 2959 2959 if( !is_null($replacement) ) 2960 2960 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) ); 2961 2961 else … … 2970 2970 * to get the backtrace up to what file and function included the deprecated 2971 2971 * file. 2972 2972 * 2973 * The current behavior is to trigger an user error if WP_DEBUG is defined and2973 * The current behavior is to trigger an user error if WP_DEBUG 2974 2974 * is true. 2975 2975 * 2976 2976 * This function is to be used in every file that is depreceated … … 2992 2992 do_action('deprecated_file_included', $file, $replacement); 2993 2993 2994 2994 // Allow plugin to filter the output error trigger 2995 if( defined('WP_DEBUG') && ( true === WP_DEBUG ) && apply_filters( 'deprecated_file_trigger_error', true )) {2995 if( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) { 2996 2996 if( !is_null($replacement) ) 2997 2997 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $file, $version, $replacement ) ); 2998 2998 else -
wp-includes/http.php
655 655 656 656 $proxy = new WP_HTTP_Proxy(); 657 657 658 if ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG )) {658 if ( !WP_DEBUG ) { 659 659 if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) 660 660 $handle = @fsockopen( $proxy->host(), $proxy->port(), $iError, $strError, $r['timeout'] ); 661 661 else … … 826 826 if ( 'http' != $arrURL['scheme'] && 'https' != $arrURL['scheme'] ) 827 827 $url = str_replace($arrURL['scheme'], 'http', $url); 828 828 829 if ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ))829 if ( !WP_DEBUG ) 830 830 $handle = @fopen($url, 'r'); 831 831 else 832 832 $handle = fopen($url, 'r'); … … 999 999 1000 1000 $context = stream_context_create($arrContext); 1001 1001 1002 if ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ))1002 if ( !WP_DEBUG ) 1003 1003 $handle = @fopen($url, 'r', false, $context); 1004 1004 else 1005 1005 $handle = fopen($url, 'r', false, $context); … … 1167 1167 } 1168 1168 } 1169 1169 1170 if ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG )) //Emits warning level notices for max redirects and timeouts1170 if ( !WP_DEBUG ) //Emits warning level notices for max redirects and timeouts 1171 1171 $strResponse = @http_request($r['method'], $url, $r['body'], $options, $info); 1172 1172 else 1173 1173 $strResponse = http_request($r['method'], $url, $r['body'], $options, $info); //Emits warning level notices for max redirects and timeouts … … 1184 1184 $theHeaders = WP_Http::processHeaders($theHeaders); 1185 1185 1186 1186 if ( ! empty( $theBody ) && isset( $theHeaders['headers']['transfer-encoding'] ) && 'chunked' == $theHeaders['headers']['transfer-encoding'] ) { 1187 if ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ))1187 if ( !WP_DEBUG ) 1188 1188 $theBody = @http_chunked_decode($theBody); 1189 1189 else 1190 1190 $theBody = http_chunked_decode($theBody); -
wp-includes/wp-db.php
357 357 function __construct($dbuser, $dbpassword, $dbname, $dbhost) { 358 358 register_shutdown_function(array(&$this, "__destruct")); 359 359 360 if ( defined('WP_DEBUG') and WP_DEBUG == true)360 if ( WP_DEBUG ) 361 361 $this->show_errors(); 362 362 363 363 if ( defined('DB_CHARSET') ) -
wp-settings.php
210 210 ini_set('error_log', WP_CONTENT_DIR . '/debug.log'); 211 211 } 212 212 } else { 213 define('WP_DEBUG', false); 213 214 if ( defined('E_RECOVERABLE_ERROR') ) 214 215 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR); 215 216 else
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)