From 0df3ab62a7ea537e0e5888533ca21f6d2ded7362 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 28 May 2013 03:53:59 +0000 Subject: [PATCH] Fix E_STRICT notice in wp_get_popular_importers(). see #24356. git-svn-id: https://develop.svn.wordpress.org/trunk@24378 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/import.php b/wp-admin/includes/import.php index 907bbb92fc..69f7ebe6a3 100644 --- a/wp-admin/includes/import.php +++ b/wp-admin/includes/import.php @@ -110,7 +110,8 @@ function wp_get_popular_importers() { if ( ! $popular_importers ) { $url = add_query_arg( 'locale', get_locale(), 'http://api.wordpress.org/core/importers/1.0/' ); $options = array( 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url() ); - $popular_importers = maybe_unserialize( wp_remote_retrieve_body( wp_remote_get( $url, $options ) ) ); + $response = wp_remote_get( $url, $options ); + $popular_importers = maybe_unserialize( wp_remote_retrieve_body( $response ) ); if ( is_array( $popular_importers ) ) set_site_transient( 'popular_importers_' . $locale, $popular_importers, 2 * DAY_IN_SECONDS );