Changes in trunk/wp-includes/http.php [11977:12207]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r11977 r12207 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'] ); … … 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 … … 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 … … 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 … … 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
Note: See TracChangeset
for help on using the changeset viewer.