WordPress.org

Make WordPress Core

Ticket #42693: 42693v5.diff

File 42693v5.diff, 1.5 KB (added by tigertech, 2 years ago)

I agree that ".example" is reasonable and reads better as a general practice. This patch uses ".example" and applies cleanly against trunk. I tested the patch on a fresh install and verified that it no longer sends mail to "you@…", but that it still correctly sends messages on subsequent address changes.

  • src/wp-includes/functions.php

     
    57665766                return;
    57675767        }
    57685768
     5769        if ( '.example' === substr( $old_email, -8 ) ) {
     5770                return;
     5771        }
     5772
    57695773        /* translators: Do not translate OLD_EMAIL, NEW_EMAIL, SITENAME, SITEURL: those are placeholders. */
    57705774        $email_change_text = __( 'Hi,
    57715775
  • src/wp-includes/ms-functions.php

     
    26782678                return;
    26792679        }
    26802680
     2681        if ( '.example' === substr( $old_email, -8 ) ) {
     2682                return;
     2683        }
     2684
    26812685        /* translators: Do not translate OLD_EMAIL, NEW_EMAIL, SITENAME, SITEURL: those are placeholders. */
    26822686        $email_change_text = __( 'Hi,
    26832687
  • src/wp-admin/includes/schema.php

     
    398398        /* translators: site tagline */
    399399        'blogdescription' => __('Just another WordPress site'),
    400400        'users_can_register' => 0,
    401         'admin_email' => 'you@example.com',
     401        'admin_email' => 'you@your.domain.example',
    402402        /* translators: default start of the week. 0 = Sunday, 1 = Monday */
    403403        'start_of_week' => _x( '1', 'start of week' ),
    404404        'use_balanceTags' => 0,