WordPress.org

Make WordPress Core

Ticket #42693: 42693.diff

File 42693.diff, 867 bytes (added by MattyRob, 2 years ago)
  • src/wp-includes/functions.php

     
    57625762         */
    57635763        $send = apply_filters( 'send_site_admin_email_change_email', true, $old_email, $new_email );
    57645764
    5765         if ( ! $send ) {
     5765        if ( ! $send || 'you@example.com' === $old_email ) {
    57665766                return;
    57675767        }
    57685768
  • src/wp-includes/ms-functions.php

     
    26742674         */
    26752675        $send = apply_filters( 'send_network_admin_email_change_email', true, $old_email, $new_email, $network_id );
    26762676
    2677         if ( ! $send ) {
     2677        if ( ! $send || 'you@example.com' === $old_email ) {
    26782678                return;
    26792679        }
    26802680