Ticket #13457: cancel-new-user-email.diff
| File cancel-new-user-email.diff, 1.5 KB (added by , 16 years ago) |
|---|
-
wp-admin/user-edit.php
74 74 wp_redirect( add_query_arg( array('updated' => 'true'), admin_url( 'profile.php' ) ) ); 75 75 die(); 76 76 } 77 } elseif ( is_multisite() && IS_PROFILE_PAGE && !empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' == $_GET['dismiss'] ) { 78 delete_option( $current_user->ID . '_new_email' ); 79 wp_redirect( add_query_arg( array('updated' => 'true'), admin_url( 'profile.php' ) ) ); 80 die(); 77 81 } 78 82 79 83 switch ($action) { … … 285 289 <table class="form-table"> 286 290 <tr> 287 291 <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> 288 <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" /></td> 292 <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" /> 293 <?php 294 $new_email = get_option( $current_user->ID . '_new_email' ); 295 if ( $new_email && $new_email != $current_user->user_email ) : ?> 296 <div class="updated inline"> 297 <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( admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ) ); ?></p> 298 </div> 299 <?php endif; ?> 300 </td> 289 301 </tr> 290 302 291 303 <tr>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)