Changeset 24378
- Timestamp:
- 05/28/2013 03:53:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/import.php
r22632 r24378 111 111 $url = add_query_arg( 'locale', get_locale(), 'http://api.wordpress.org/core/importers/1.0/' ); 112 112 $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 ) ); 114 115 115 116 if ( is_array( $popular_importers ) )
Note: See TracChangeset
for help on using the changeset viewer.