Make WordPress Core

Changeset 60129


Ignore:
Timestamp:
04/04/2025 04:34:25 PM (3 months ago)
Author:
johnbillion
Message:

Administration: Don't attempt to send a notification about a change of site admin or network admin email address when the old address is empty.

Props spenserhale.

Fixes #62211

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r60128 r60129  
    80918091    $send = true;
    80928092
    8093     // Don't send the notification to the default 'admin_email' value.
    8094     if ( 'you@example.com' === $old_email ) {
     8093    // Don't send the notification to the default 'admin_email' value or an empty value.
     8094    if ( 'you@example.com' === $old_email || empty( $old_email ) ) {
    80958095        $send = false;
    80968096    }
  • trunk/src/wp-includes/ms-functions.php

    r59754 r60129  
    28702870    $send = true;
    28712871
    2872     // Don't send the notification to the default 'admin_email' value.
    2873     if ( 'you@example.com' === $old_email ) {
     2872    // Don't send the notification to the default 'admin_email' value or an empty value.
     2873    if ( 'you@example.com' === $old_email || empty( $old_email ) ) {
    28742874        $send = false;
    28752875    }
Note: See TracChangeset for help on using the changeset viewer.