diff --git a/wp-includes/update.php b/wp-includes/update.php index 02db4832d226cf65a4c95bb739d028ad84aab626..5ae9f613bf222c5db0f6148c87c0bf99449d542c 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -106,7 +106,7 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) { * @since 4.9.0 * * @param array $query { - * Version check query arguments. + * Version check query arguments. * * @type string $version WordPress version number. * @type string $php PHP version number. @@ -135,8 +135,8 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) { $doing_cron = wp_doing_cron(); $options = array( - 'timeout' => $doing_cron ? 30 : 3, - 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ), + 'timeout' => $doing_cron ? 30 : 3, + 'user-agent' => 'WordPress/' . $wp_version . '; http://wordpress.org', 'headers' => array( 'wp_install' => home_url( '/' ), 'wp_blog' => home_url( '/' ) @@ -325,7 +325,7 @@ function wp_update_plugins( $extra_stats = array() ) { 'locale' => wp_json_encode( $locales ), 'all' => wp_json_encode( true ), ), - 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ) + 'user-agent' => 'WordPress/' . $wp_version . '; http://wordpress.org' ); if ( $extra_stats ) { @@ -507,7 +507,7 @@ function wp_update_themes( $extra_stats = array() ) { 'translations' => wp_json_encode( $translations ), 'locale' => wp_json_encode( $locales ), ), - 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ) + 'user-agent' => 'WordPress/' . $wp_version . '; http://wordpress.org' ); if ( $extra_stats ) {