Background Updates: Fix two variable typos in r27905
Built from https://develop.svn.wordpress.org/trunk@27906 git-svn-id: http://core.svn.wordpress.org/trunk@27737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50a7503c2e
commit
61289de08d
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue