Make WordPress Core

Ticket #8622: 8622.3.diff

File 8622.3.diff, 2.1 KB (added by jacobsantos, 15 years ago)

r15290 version of fix.

  • class-http.php

     
    9292                        if ( true === WP_Http_ExtHttp::test($args) ) {
    9393                                $working_transport['exthttp'] = new WP_Http_ExtHttp();
    9494                                $blocking_transport[] = &$working_transport['exthttp'];
    95                         } else if ( true === WP_Http_Curl::test($args) ) {
     95                        }
     96                        if ( true === WP_Http_Curl::test($args) ) {
    9697                                $working_transport['curl'] = new WP_Http_Curl();
    9798                                $blocking_transport[] = &$working_transport['curl'];
    98                         } else if ( true === WP_Http_Streams::test($args) ) {
     99                        }
     100                        if ( true === WP_Http_Streams::test($args) ) {
    99101                                $working_transport['streams'] = new WP_Http_Streams();
    100102                                $blocking_transport[] = &$working_transport['streams'];
    101                         } else if ( true === WP_Http_Fopen::test($args) ) {
     103                        }
     104                        if ( true === WP_Http_Fopen::test($args) ) {
    102105                                $working_transport['fopen'] = new WP_Http_Fopen();
    103106                                $blocking_transport[] = &$working_transport['fopen'];
    104                         } else if ( true === WP_Http_Fsockopen::test($args) ) {
     107                        }
     108                        if ( true === WP_Http_Fsockopen::test($args) ) {
    105109                                $working_transport['fsockopen'] = new WP_Http_Fsockopen();
    106110                                $blocking_transport[] = &$working_transport['fsockopen'];
    107111                        }
     
    142146                        if ( true === WP_Http_ExtHttp::test($args) ) {
    143147                                $working_transport['exthttp'] = new WP_Http_ExtHttp();
    144148                                $blocking_transport[] = &$working_transport['exthttp'];
    145                         } else if ( true === WP_Http_Curl::test($args) ) {
     149                        }
     150                        if ( true === WP_Http_Curl::test($args) ) {
    146151                                $working_transport['curl'] = new WP_Http_Curl();
    147152                                $blocking_transport[] = &$working_transport['curl'];
    148                         } else if ( true === WP_Http_Streams::test($args) ) {
     153                        }
     154                        if ( true === WP_Http_Streams::test($args) ) {
    149155                                $working_transport['streams'] = new WP_Http_Streams();
    150156                                $blocking_transport[] = &$working_transport['streams'];
    151                         } else if ( true === WP_Http_Fsockopen::test($args) ) {
     157                        }
     158                        if ( true === WP_Http_Fsockopen::test($args) ) {
    152159                                $working_transport['fsockopen'] = new WP_Http_Fsockopen();
    153160                                $blocking_transport[] = &$working_transport['fsockopen'];
    154161                        }