From c4ba077110774d9743482eff81198db98889eff7 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index 5ae9f613b..702256198 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -137,10 +137,6 @@ 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, ); -- GitLab