Make WordPress Core

Changeset 17566


Ignore:
Timestamp:
03/28/2011 09:55:15 AM (14 years ago)
Author:
dd32
Message:

Use the correct variable name; Simpler static initialisation. Props hakre. See #11613 & #16978

File:
1 edited

Legend:

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

    r17563 r17566  
    219219     */
    220220    private function _dispatch_request($url, $args) {
    221         static $transports = null;
    222         if ( is_null($transports) )
    223             $transports = array();
    224 
    225         $request_order = isset($r['blocking']) && !$r['blocking'] ?
     221        static $transports = array();
     222
     223        $request_order = isset($args['blocking']) && !$args['blocking'] ?
    226224                            array('curl', 'streams', 'fsockopen', 'exthttp') : // non-blocking order
    227225                            array('exthttp', 'curl', 'streams', 'fsockopen'); // blocking order
Note: See TracChangeset for help on using the changeset viewer.