Make WordPress Core

Changeset 28865


Ignore:
Timestamp:
06/27/2014 12:24:36 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Avoid a PHP notice and warning on language selection screen.

props meekyhwang.
fixes #28648.

File:
1 edited

Legend:

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

    r28506 r28865  
    184184        // Determine if this request is to OUR install of WordPress
    185185        $homeURL = parse_url( get_bloginfo( 'url' ) );
    186         $r['local'] = $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host'];
     186        if ( isset( $homeURL['host'] ) ) {
     187            $r['local'] = ( $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host'] );
     188        } else {
     189            $r['local'] = false;
     190        }
    187191        unset( $homeURL );
    188192
Note: See TracChangeset for help on using the changeset viewer.