X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/af50974463450c98503e763a7836a50e260461a9..985e04597a9f1ddc4a3b406d0fb33722e097ee8b:/wp-includes/update.php?ds=inline diff --git a/wp-includes/update.php b/wp-includes/update.php index 597a020f..a32b1e88 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -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 );