#3256 closed defect (bug) (fixed)
Topic or reply author name isn't correctly decoded in email notifications
Reported by: | danielbachhuber | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | API - Subscriptions | Keywords: | has-patch |
Cc: |
Description
If my user's display name is Super&AwesomeDaniel
(on the frontend, or Super&AwesomeDaniel
in the database), then a forum or topic email notification be sent with:
Super&AwesomeDaniel wrote:
I would expect it to display:
Super&AwesomeDaniel wrote:
My hacky workaround is:
add_filter( 'bbp_subscription_mail_message', function( $message ){ $bits = explode( PHP_EOL, $message ); $bits[0] = html_entity_decode( $bits[0], ENT_QUOTES ); $message = implode( PHP_EOL, $bits ); return $message; });
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Try wp_specialchars_decode() on author names