Ticket #11090: 11090_2.patch
| File 11090_2.patch, 3.4 KB (added by , 16 years ago) |
|---|
-
functions.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( defined('WP_DEBUG') && 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 … … 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( defined('WP_DEBUG') && 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 -
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 ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && !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 ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && !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 ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && !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 ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && !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 ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && !WP_DEBUG ) ) 1188 1188 $theBody = @http_chunked_decode($theBody); 1189 1189 else 1190 1190 $theBody = http_chunked_decode($theBody);