Skip to content
Snippets Groups Projects
Commit 7d91f457 authored by shammash's avatar shammash Committed by agata
Browse files

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: default avatarshammash <shammash@autistici.org>
parent cdd8e08c
No related branches found
No related tags found
No related merge requests found
......@@ -142,11 +142,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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment