Changeset 50759
- Timestamp:
- 04/15/2021 10:29:21 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r50505 r50759 255 255 256 256 // 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 ) { 258 261 return false; 259 262 } … … 625 628 } 626 629 627 $n = get_site_option( 'auto_core_update_notified' ); 630 $notified = get_site_option( 'auto_core_update_notified' ); 631 628 632 // 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 ) { 630 638 $send = false; 631 639 }
Note: See TracChangeset
for help on using the changeset viewer.