Make WordPress Core

Changeset 23364


Ignore:
Timestamp:
02/01/2013 01:50:19 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Only show "There is a pending change of your e-mail..." message on the current user's profile page. fixes #23146.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r22687 r23364  
    338338    <?php
    339339    $new_email = get_option( $current_user->ID . '_new_email' );
    340     if ( $new_email && $new_email != $current_user->user_email ) : ?>
     340    if ( $new_email && $new_email['newemail'] != $current_user->user_email && $profileuser->ID == $current_user->ID ) : ?>
    341341    <div class="updated inline">
    342342    <p><?php printf( __('There is a pending change of your e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), $new_email['newemail'], esc_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ) ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.