Make WordPress Core

Changeset 50759


Ignore:
Timestamp:
04/15/2021 10:29:21 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Give a variable in WP_Automatic_Updater::after_core_update() a more meaningful name.

Follow-up to [25841], [25873], [25882].

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r50505 r50759  
    255255
    256256        // Don't notify if we've already notified the same email address of the same version.
    257         if ( $notified && get_site_option( 'admin_email' ) === $notified['email'] && $notified['version'] == $item->current ) {
     257        if ( $notified
     258            && get_site_option( 'admin_email' ) === $notified['email']
     259            && $notified['version'] == $item->current
     260        ) {
    258261            return false;
    259262        }
     
    625628        }
    626629
    627         $n = get_site_option( 'auto_core_update_notified' );
     630        $notified = get_site_option( 'auto_core_update_notified' );
     631
    628632        // Don't notify if we've already notified the same email address of the same version of the same notification type.
    629         if ( $n && 'fail' === $n['type'] && get_site_option( 'admin_email' ) === $n['email'] && $n['version'] == $core_update->current ) {
     633        if ( $notified
     634            && 'fail' === $notified['type']
     635            && get_site_option( 'admin_email' ) === $notified['email']
     636            && $notified['version'] == $core_update->current
     637        ) {
    630638            $send = false;
    631639        }
Note: See TracChangeset for help on using the changeset viewer.