Opened 10 years ago
Closed 9 years ago
#6163 closed defect (bug) (fixed)
bp_settings_pending_email_notice() message using wrong email
Reported by: | willgladstone | Owned by: | |
---|---|---|---|
Milestone: | 2.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Settings | Keywords: | has-patch needs-testing |
Cc: |
Description (last modified by )
bp_settings_pending_email_notice() spits out a message to check your email for verification of a change in email address. The email it tells you to check is your old email but it sends the verification to the new email. The message should be corrected to tell you to check your new email.
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_emailnewemail?, bp_get_displayed_user_email(), esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/?dismiss_email_change=1' ) )
should instead be:
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_emailnewemail?, $pending_emailnewemail?, esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/?dismiss_email_change=1' ) )
Attachments (1)
Change History (9)
#3
@
10 years ago
- Component changed from Core to Settings
- Keywords has-patch needs-testing added
6163.01.patch does the following:
- Separates verification email sending procedure into its own function.
- Introduces the ability to resend a verification email.
- Updates the surrounding verbiage to be simpler and more accurate.
- Adds filters to
bp_get_settings_pending_email_notice()
to allow text and links to be modified. - Uses more helper, functions like
trailingslashit
,add_query_arg()
, etc...
Nice spot