Make WordPress Core

Ticket #23146: 23146.patch

File 23146.patch, 875 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-admin/user-edit.php

     
    337337        <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
    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 && $profileuser->ID == $current_user->ID && $new_email['newemail'] != $current_user->user_email ) : ?>
    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>
    343343        </div>