From e30d8744e43764472fc8ee5db7b422539e115a26 Mon Sep 17 00:00:00 2001 From: shammash <shammash@autistici.org> Date: Fri, 28 Dec 2012 14:57:16 +0000 Subject: [PATCH] do not use fake wordpress version Wordpress APIs use the Wordpress version in the user-agent to determine which plugins are available for an update. Using a fake version breaks this mechanism. Signed-off-by: shammash <shammash@autistici.org> --- wp-includes/update.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index 375c86b97..c7dccdc3a 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -156,11 +156,7 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) { $options = array( 'timeout' => $doing_cron ? 30 : 3, 'user-agent' => 'WordPress/' . $wp_version . '; http://wordpress.org', - 'headers' => array( - 'wp_install' => home_url( '/' ), - 'wp_blog' => home_url( '/' ) - ), - 'body' => $post_body, + 'body' => $post_body, ); $response = wp_remote_post( $url, $options ); -- GitLab