mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -42,6 +42,9 @@ function get_core_updates( $options = array() ) {
|
||||
$updates = $from_api->updates;
|
||||
$result = array();
|
||||
foreach ( $updates as $update ) {
|
||||
if ( $update->response == 'autoupdate' )
|
||||
continue;
|
||||
|
||||
if ( array_key_exists( $update->current . '|' . $update->locale, $dismissed ) ) {
|
||||
if ( $options['dismissed'] ) {
|
||||
$update->dismissed = true;
|
||||
|
||||
Reference in New Issue
Block a user