Changeset 41605 for trunk/src/wp-admin/includes/import.php
- Timestamp:
- 09/27/2017 07:59:14 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/import.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/import.php
r38705 r41605 132 132 if ( ! $popular_importers ) { 133 133 $url = add_query_arg( array( 134 'locale' => get_user_locale(),134 'locale' => $locale, 135 135 'version' => $wp_version, 136 136 ), 'http://api.wordpress.org/core/importers/1.1/' ); 137 $options = array( 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url() ); 137 $options = array( 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ) ); 138 139 if ( wp_http_supports( array( 'ssl' ) ) ) { 140 $url = set_url_scheme( $url, 'https' ); 141 } 142 138 143 $response = wp_remote_get( $url, $options ); 139 144 $popular_importers = json_decode( wp_remote_retrieve_body( $response ), true );
Note: See TracChangeset
for help on using the changeset viewer.