Make WordPress Core

Changeset 24378


Ignore:
Timestamp:
05/28/2013 03:53:59 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Fix E_STRICT notice in wp_get_popular_importers(). see #24356.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/import.php

    r22632 r24378  
    111111        $url = add_query_arg( 'locale', get_locale(), 'http://api.wordpress.org/core/importers/1.0/' );
    112112        $options = array( 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url() );
    113         $popular_importers = maybe_unserialize( wp_remote_retrieve_body( wp_remote_get( $url, $options ) ) );
     113        $response = wp_remote_get( $url, $options );
     114        $popular_importers = maybe_unserialize( wp_remote_retrieve_body( $response ) );
    114115
    115116        if ( is_array( $popular_importers ) )
Note: See TracChangeset for help on using the changeset viewer.