Updates
This commit is contained in:
1 parent
f3b69c7bb3
commit
671f1ecdfc
66 files changed
+2430
-2425
No files matched your search
@@ -521,14 +521,12 @@ function wp_get_update_data() {
|
||||
$counts = array( 'plugins' => 0, 'themes' => 0, 'wordpress' => 0, 'translations' => 0 );
|
||||
|
||||
if ( $plugins = current_user_can( 'update_plugins' ) ) {
|
||||
wp_update_plugins(); // Check for Plugin updates
|
||||
$update_plugins = get_site_transient( 'update_plugins' );
|
||||
if ( ! empty( $update_plugins->response ) )
|
||||
$counts['plugins'] = count( $update_plugins->response );
|
||||
}
|
||||
|
||||
if ( $themes = current_user_can( 'update_themes' ) ) {
|
||||
wp_update_themes(); // Check for Theme updates
|
||||
$update_themes = get_site_transient( 'update_themes' );
|
||||
if ( ! empty( $update_themes->response ) )
|
||||
$counts['themes'] = count( $update_themes->response );
|
||||
|
||||
Reference in new issue
Block a user