WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2010 06:47:34 PM (9 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

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

    r16149 r16438  
    2424            }
    2525        } else {
    26             $this->scheme = 'http'; 
     26            $this->scheme = 'http';
    2727            $this->server = $server;
    2828            $this->path = $path;
     
    4646            'body'       => $xml,
    4747        );
    48        
     48
    4949        // Merge Custom headers ala #8145
    5050        foreach ( $this->headers as $header => $value )
    5151            $args['headers'][$header] = $value;
    52        
     52
    5353        if ( $this->timeout !== false )
    5454            $args['timeout'] = $this->timeout;
    55            
     55
    5656        // Now send the request
    5757        if ($this->debug) {
     
    5959        }
    6060
    61         $response = wp_remote_post($url, $args); 
     61        $response = wp_remote_post($url, $args);
    6262
    63         if ( is_wp_error($response) ) { 
    64             $errno    = $response->get_error_code(); 
    65             $errorstr = $response->get_error_message(); 
    66             $this->error = new IXR_Error(-32300, "transport error: $errno $errstr"); 
     63        if ( is_wp_error($response) ) {
     64            $errno    = $response->get_error_code();
     65            $errorstr = $response->get_error_message();
     66            $this->error = new IXR_Error(-32300, "transport error: $errno $errstr");
    6767            return false;
    6868        }
    69    
    70         $code = $response['response']['code']; 
    71         if ( $code != 200 ) { 
     69
     70        $code = $response['response']['code'];
     71        if ( $code != 200 ) {
    7272            $this->error = new IXR_Error(-32301, "transport error - HTTP status code was not 200 ($code)");             return false;
    7373        }
Note: See TracChangeset for help on using the changeset viewer.