Make WordPress Core

Ticket #43106: 43106.2.patch

File 43106.2.patch, 959 bytes (added by dilipbheda, 8 years ago)

Updated patch for the admin condition.

  • src/wp-admin/user-edit.php

     
    487487                <th><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
    488488                <td><input type="email" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ); ?>" class="regular-text ltr" />
    489489                <?php
     490                if( is_admin() && $profileuser->ID == $current_user->ID ) : ?>
     491                        <p class="description"><?php _e( 'If you change this email we will send you an email at your new address to confirm it. The new address will not become active until confirmed.' ); ?></p>
     492                <?php endif;
    490493                $new_email = get_user_meta( $current_user->ID, '_new_email', true );
    491494                if ( $new_email && $new_email['newemail'] != $current_user->user_email && $profileuser->ID == $current_user->ID ) :
    492495                ?>