mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Coding Standards: Give a variable in WP_Automatic_Updater::after_core_update() a more meaningful name.
Follow-up to [25841], [25873], [25882]. See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@50759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -254,7 +254,10 @@ class WP_Automatic_Updater {
|
||||
$notified = get_site_option( 'auto_core_update_notified' );
|
||||
|
||||
// Don't notify if we've already notified the same email address of the same version.
|
||||
if ( $notified && get_site_option( 'admin_email' ) === $notified['email'] && $notified['version'] == $item->current ) {
|
||||
if ( $notified
|
||||
&& get_site_option( 'admin_email' ) === $notified['email']
|
||||
&& $notified['version'] == $item->current
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -624,9 +627,14 @@ class WP_Automatic_Updater {
|
||||
$send = false;
|
||||
}
|
||||
|
||||
$n = get_site_option( 'auto_core_update_notified' );
|
||||
$notified = get_site_option( 'auto_core_update_notified' );
|
||||
|
||||
// Don't notify if we've already notified the same email address of the same version of the same notification type.
|
||||
if ( $n && 'fail' === $n['type'] && get_site_option( 'admin_email' ) === $n['email'] && $n['version'] == $core_update->current ) {
|
||||
if ( $notified
|
||||
&& 'fail' === $notified['type']
|
||||
&& get_site_option( 'admin_email' ) === $notified['email']
|
||||
&& $notified['version'] == $core_update->current
|
||||
) {
|
||||
$send = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user