From c86d9021c5a63988b9a88c19bb59642429947646 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 2 Apr 2014 13:12:28 +0000 Subject: [PATCH] Background Updates: Fix two variable typos in r27905 git-svn-id: https://develop.svn.wordpress.org/trunk@27906 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php index 1948a741a3..257fc9dd5e 100644 --- a/src/wp-includes/update.php +++ b/src/wp-includes/update.php @@ -257,7 +257,7 @@ function wp_update_plugins( $extra_stats = array() ) { 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ); - if ( $plugin_update_stats ) { + if ( $extra_stats ) { $options['body']['update_stats'] = json_encode( $extra_stats ); } @@ -401,7 +401,7 @@ function wp_update_themes( $extra_stats = array() ) { 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ); - if ( $theme_update_stats ) { + if ( $extra_stats ) { $options['body']['update_stats'] = json_encode( $extra_stats ); }