WordPress.org

Make WordPress Core

Ticket #16889: 16889.patch

File 16889.patch, 768 bytes (added by hakre, 10 years ago)

First digit counts

  • wp-includes/class-http.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    14481448                curl_close( $handle );
    14491449
    14501450                // See #11305 - When running under safe mode, redirection is disabled above. Handle it manually.
    1451                 if ( !empty($theHeaders['headers']['location']) && (ini_get('safe_mode') || ini_get('open_basedir')) ) {
     1451                if ( 3 === $response['code'][0] && !empty($theHeaders['headers']['location']) && (ini_get('safe_mode') || ini_get('open_basedir')) ) {
    14521452                        if ( $r['redirection']-- > 0 ) {
    14531453                                return $this->request($theHeaders['headers']['location'], $r);
    14541454                        } else {