wp-includes/update.php | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index da29e93..48ba15e 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -61,11 +61,7 @@ function wp_version_check() { $options = array( 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ), - 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ), - 'headers' => array( - 'wp_install' => home_url( '/' ), - 'wp_blog' => home_url( '/' ) - ) + 'user-agent' => 'WordPress/3.0; http://wordpress.org' ); $response = wp_remote_get($url, $options); @@ -169,7 +165,7 @@ function wp_update_plugins() { $options = array( 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 'body' => array( 'plugins' => serialize( $to_send ) ), - 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) + 'user-agent' => 'WordPress/3.0; http://wordpress.org' ); $raw_response = wp_remote_post('http://api.wordpress.org/plugins/update-check/1.0/', $options); @@ -267,7 +263,7 @@ function wp_update_themes( ) { $options = array( 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 'body' => array( 'themes' => serialize( $themes ) ), - 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) + 'user-agent' => 'WordPress/3.0; http://wordpress.org' ); $raw_response = wp_remote_post( 'http://api.wordpress.org/themes/update-check/1.0/', $options );