Ticket #13071: update.diff
File update.diff, 886 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/update.php
521 521 $counts = array( 'plugins' => 0, 'themes' => 0, 'wordpress' => 0, 'translations' => 0 ); 522 522 523 523 if ( $plugins = current_user_can( 'update_plugins' ) ) { 524 wp_update_plugins(); // Check for Plugin updates 524 525 $update_plugins = get_site_transient( 'update_plugins' ); 525 526 if ( ! empty( $update_plugins->response ) ) 526 527 $counts['plugins'] = count( $update_plugins->response ); … … 527 528 } 528 529 529 530 if ( $themes = current_user_can( 'update_themes' ) ) { 531 wp_update_themes(); // Check for Theme updates 530 532 $update_themes = get_site_transient( 'update_themes' ); 531 533 if ( ! empty( $update_themes->response ) ) 532 534 $counts['themes'] = count( $update_themes->response );