Changeset 8560 for trunk/src/bp-settings/bp-settings-template.php
- Timestamp:
- 07/05/2014 07:01:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/bp-settings-template.php
r6317 r8560 56 56 return apply_filters( 'bp_get_settings_root_slug', buddypress()->settings->root_slug ); 57 57 } 58 59 /** 60 * Add the 'pending email change' message to the settings page. 61 * 62 * @since BuddyPress (2.1.0) 63 */ 64 function bp_settings_pending_email_notice() { 65 $pending_email = bp_get_user_meta( bp_displayed_user_id(), 'pending_email_change', true ); 66 67 if ( empty( $pending_email['newemail'] ) ) { 68 return; 69 } 70 71 if ( bp_get_displayed_user_email() == $pending_email['newemail'] ) { 72 return; 73 } 74 75 ?> 76 77 <div id="message" class="bp-template-notice error"> 78 <p><?php printf( __( 'There is a pending change of your email address to <code>%1$s</code>.<br />Check your email (<code>%2$s</code>) for the verification link. <a href="%3$s">Cancel</a>', 'buddypress' ), $pending_email['newemail'], bp_get_displayed_user_email(), esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/?dismiss_email_change=1' ) ) ?></p> 79 </div> 80 81 <?php 82 } 83 add_action( 'bp_before_member_settings_template', 'bp_settings_pending_email_notice' );
Note: See TracChangeset
for help on using the changeset viewer.