WordPress.org

Make WordPress Core

Changeset 38450


Ignore:
Timestamp:
08/30/2016 05:15:54 PM (23 months ago)
Author:
johnbillion
Message:

HTTP API: Prevent a fatal error on PHP < 5.4.7 due to changes introduced in [38449].

Fixes #36356

File:
1 edited

Legend:

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

    r38449 r38450  
    660660                return $parts;
    661661            }
    662             // Remove the placeholder values
    663             unset( $parts['scheme'], $parts['host'] );
     662            if ( is_array( $parts ) ) {
     663                // Remove the placeholder values
     664                unset( $parts['scheme'], $parts['host'] );
     665            }
    664666        } else {
    665667            return $parts;
Note: See TracChangeset for help on using the changeset viewer.