mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-24 09:11:24 +01: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. Built from https://develop.svn.wordpress.org/trunk@50759 git-svn-id: http://core.svn.wordpress.org/trunk@50368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e445660ee3
commit
ac9f1a4685
@ -254,7 +254,10 @@ class WP_Automatic_Updater {
|
|||||||
$notified = 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.
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -624,9 +627,14 @@ class WP_Automatic_Updater {
|
|||||||
$send = false;
|
$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.
|
// 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;
|
$send = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-alpha-50717';
|
$wp_version = '5.8-alpha-50759';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user