Background Updates: Fix two variable typos in r27905

git-svn-id: https://develop.svn.wordpress.org/trunk@27906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2014-04-02 13:12:28 +00:00
parent 48025fabd5
commit c86d9021c5

View File

@@ -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 );
}