Make WordPress Core

Ticket #42693: 42693v6.diff

File 42693v6.diff, 1.6 KB (added by seanchayes, 6 years ago)
  • src/wp-admin/includes/misc.php

    diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
    index ab15762ffa..5416882788 100644
    a b function update_option_new_admin_email( $old_value, $value ) { 
    11941194        if ( $value == get_option( 'admin_email' ) || ! is_email( $value ) ) {
    11951195                return;
    11961196        }
    1197 
     1197        if ( '@example.com' === substr( $old_value, -12 ) ) {
     1198                return;
     1199        }
    11981200        $hash            = md5( $value . time() . mt_rand() );
    11991201        $new_admin_email = array(
    12001202                'hash'     => $hash,
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 7d41b37aef..f55187bd2b 100644
    a b function wp_site_admin_email_change_notification( $old_email, $new_email, $optio 
    60076007        if ( ! $send ) {
    60086008                return;
    60096009        }
    6010 
     6010        if ( '@example.com' === substr( $old_email, -12 ) ) {
     6011                return;
     6012        }
    60116013        /* translators: Do not translate OLD_EMAIL, NEW_EMAIL, SITENAME, SITEURL: those are placeholders. */
    60126014        $email_change_text = __(
    60136015                'Hi,
  • src/wp-includes/ms-functions.php

    diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php
    index 984a69ce6f..9a1f77f28e 100644
    a b function wp_network_admin_email_change_notification( $option_name, $new_email, $ 
    28572857        if ( ! $send ) {
    28582858                return;
    28592859        }
    2860 
     2860        if ( '@example.com' === substr( $old_email, -12 ) ) {
     2861                return;
     2862        }
    28612863        /* translators: Do not translate OLD_EMAIL, NEW_EMAIL, SITENAME, SITEURL: those are placeholders. */
    28622864        $email_change_text = __(
    28632865                'Hi,