Make WordPress Core

Changeset 23608


Ignore:
Timestamp:
03/04/2013 05:17:05 AM (12 years ago)
Author:
dd32
Message:

WP_HTTP: Fix returning WP_Error's on too-many-redirects after r23603 See #23682

File:
1 edited

Legend:

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

    r23607 r23608  
    110110        $r = apply_filters( 'http_request_args', $r, $url );
    111111
    112         // Certain classes decrement this, store a copy of the original value for loop purposes.
    113         $r['_redirection'] = $r['redirection'];
     112        // The transports decrement this, store a copy of the original value for loop purposes.
     113        if ( ! isset( $r['_redirection'] ) )
     114            $r['_redirection'] = $r['redirection'];
    114115
    115116        // Allow plugins to short-circuit the request
Note: See TracChangeset for help on using the changeset viewer.