Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r11977 r12207  
    656656        $proxy = new WP_HTTP_Proxy();
    657657
    658         if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) ) {
     658        if ( !WP_DEBUG ) {
    659659            if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) )
    660660                $handle = @fsockopen( $proxy->host(), $proxy->port(), $iError, $strError, $r['timeout'] );
     
    827827            $url = str_replace($arrURL['scheme'], 'http', $url);
    828828
    829         if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) )
     829        if ( !WP_DEBUG )
    830830            $handle = @fopen($url, 'r');
    831831        else
     
    10001000        $context = stream_context_create($arrContext);
    10011001
    1002         if ( ! defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) )
     1002        if ( !WP_DEBUG )
    10031003            $handle = @fopen($url, 'r', false, $context);
    10041004        else
     
    11681168        }
    11691169
    1170         if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) ) //Emits warning level notices for max redirects and timeouts
     1170        if ( !WP_DEBUG ) //Emits warning level notices for max redirects and timeouts
    11711171            $strResponse = @http_request($r['method'], $url, $r['body'], $options, $info);
    11721172        else
     
    11851185
    11861186        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 )
    11881188                $theBody = @http_chunked_decode($theBody);
    11891189            else
Note: See TracChangeset for help on using the changeset viewer.