Changeset 42571 for branches/4.9
- Timestamp:
- 01/23/2018 01:46:32 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/functions.php
r42452 r42571 5739 5739 */ 5740 5740 function wp_site_admin_email_change_notification( $old_email, $new_email, $option_name ) { 5741 $send = true; 5742 5743 // Don't send the notification to the default 'admin_email' value. 5744 if ( 'you@example.com' === $old_email ) { 5745 $send = false; 5746 } 5747 5741 5748 /** 5742 5749 * Filters whether to send the site admin email change notification email. … … 5748 5755 * @param string $new_email The new site admin email address. 5749 5756 */ 5750 $send = apply_filters( 'send_site_admin_email_change_email', true, $old_email, $new_email );5757 $send = apply_filters( 'send_site_admin_email_change_email', $send, $old_email, $new_email ); 5751 5758 5752 5759 if ( ! $send ) { -
branches/4.9/src/wp-includes/ms-functions.php
r41753 r42571 2663 2663 */ 2664 2664 function wp_network_admin_email_change_notification( $option_name, $new_email, $old_email, $network_id ) { 2665 $send = true; 2666 2667 // Don't send the notification to the default 'admin_email' value. 2668 if ( 'you@example.com' === $old_email ) { 2669 $send = false; 2670 } 2671 2665 2672 /** 2666 2673 * Filters whether to send the network admin email change notification email. … … 2673 2680 * @param int $network_id ID of the network. 2674 2681 */ 2675 $send = apply_filters( 'send_network_admin_email_change_email', true, $old_email, $new_email, $network_id );2682 $send = apply_filters( 'send_network_admin_email_change_email', $send, $old_email, $new_email, $network_id ); 2676 2683 2677 2684 if ( ! $send ) {
Note: See TracChangeset
for help on using the changeset viewer.