Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/25/2015 01:27:13 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Users: Remove pending email change markup from form-user-edit.php. See #2780.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-user-edit.php

    r5561 r5660  
    102102        <div>
    103103            <label for="email"><?php _e( 'Email', 'bbpress' ); ?></label>
    104 
    105104            <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" />
    106 
    107             <?php
    108 
    109             // Handle address change requests
    110             $new_email = get_option( bbp_get_displayed_user_id() . '_new_email' );
    111             if ( !empty( $new_email ) && $new_email !== bbp_get_displayed_user_field( 'user_email', 'edit' ) ) : ?>
    112 
    113                 <span class="updated inline">
    114 
    115                     <?php printf( __( 'There is a pending email address change to <code>%1$s</code>. <a href="%2$s">Cancel</a>', 'bbpress' ), $new_email['newemail'], esc_url( self_admin_url( 'user.php?dismiss=' . bbp_get_current_user_id()  . '_new_email' ) ) ); ?>
    116 
    117                 </span>
    118 
    119             <?php endif; ?>
    120 
    121105        </div>
    122106
Note: See TracChangeset for help on using the changeset viewer.