Opened 6 years ago
Closed 6 years ago
#3210 closed defect (bug) (fixed)
Don't use esc_html__() in combination with <strong> in messages
Reported by: | wpdennis | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | trunk |
Component: | API - Anonymous Posting | Keywords: | commit |
Cc: |
Description
In bbp_filter_anonymous_post_data() is esc_html_ _() used with html tags. I think it should use _ _() instead in:
<?php // Filter name $r['bbp_anonymous_name'] = apply_filters( 'bbp_pre_anonymous_post_author_name', $r['bbp_anonymous_name'] ); if ( empty( $r['bbp_anonymous_name'] ) ) { bbp_add_error( 'bbp_anonymous_name', esc_html__( '<strong>ERROR</strong>: Invalid author name.', 'bbpress' ) ); } // Filter email address $r['bbp_anonymous_email'] = apply_filters( 'bbp_pre_anonymous_post_author_email', $r['bbp_anonymous_email'] ); if ( empty( $r['bbp_anonymous_email'] ) ) { bbp_add_error( 'bbp_anonymous_email', esc_html__( '<strong>ERROR</strong>: Invalid email address.', 'bbpress' ) ); }
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 6838: