Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wp-includes/update.php | 4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
- diff --git a/wp-includes/update.php b/wp-includes/update.php
- index 1f9f2a9..da29e93 100644
- --- a/wp-includes/update.php
- +++ b/wp-includes/update.php
- @@ -57,13 +57,13 @@ function wp_version_check() {
- }
- $local_package = isset( $wp_local_package )? $wp_local_package : '';
- - $url = "http://api.wordpress.org/core/version-check/1.5/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package&blogs=$num_blogs&users={$user_count['total_users']}&multisite_enabled=$multisite_enabled";
- + $url = "http://api.wordpress.org/core/version-check/1.5/?version=$wp_version&php=N/A&locale=$locale&mysql=N/A&local_package=&blogs=31337&users=31337&multisite_enabled=0";
- $options = array(
- 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
- 'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ),
- 'headers' => array(
- - 'wp_install' => $wp_install,
- + 'wp_install' => home_url( '/' ),
- 'wp_blog' => home_url( '/' )
- )
- );
- #######################################################################
- 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 );
- #######################################################################
- wp-includes/class-http.php | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
- diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php
- index 5d7f83d..93bfe25 100644
- --- a/wp-includes/class-http.php
- +++ b/wp-includes/class-http.php
- @@ -220,7 +220,7 @@ class WP_Http {
- 'timeout' => apply_filters( 'http_request_timeout', 5),
- 'redirection' => apply_filters( 'http_request_redirection_count', 5),
- 'httpversion' => apply_filters( 'http_request_version', '1.0'),
- - 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ),
- + 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; http://wordpress.org' ),
- 'blocking' => true,
- 'headers' => array(),
- 'cookies' => array(),
Advertisement
Add Comment
Please, Sign In to add comment