Hide auto updates from update-core.php directly in get_core_updates(). see #22704.

git-svn-id: https://develop.svn.wordpress.org/trunk@25783 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-10-15 05:06:35 +00:00
parent 85d32ce873
commit 2eebc47254
2 changed files with 3 additions and 4 deletions
-4
View File
@@ -25,10 +25,6 @@ function list_core_update( $update ) {
global $wp_local_package, $wpdb;
static $first_pass = true;
// Don't show auto-updates in the updates page
if ( isset( $update->response ) && 'autoupdate' == $update->response )
return;
$version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ?
$update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
$current = false;