Skip to:
Content

bbPress.org

Changeset 6838


Ignore:
Timestamp:
07/27/2018 06:57:12 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Anonymous: Don't use esc_html__() in combination with HTML tags.

Props wpdennis. Fixes #3210.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6835 r6838  
    527527    $r['bbp_anonymous_name'] = apply_filters( 'bbp_pre_anonymous_post_author_name', $r['bbp_anonymous_name'] );
    528528    if ( empty( $r['bbp_anonymous_name'] ) ) {
    529         bbp_add_error( 'bbp_anonymous_name',  esc_html__( '<strong>ERROR</strong>: Invalid author name.', 'bbpress' ) );
     529        bbp_add_error( 'bbp_anonymous_name',  __( '<strong>ERROR</strong>: Invalid author name.', 'bbpress' ) );
    530530    }
    531531
     
    533533    $r['bbp_anonymous_email'] = apply_filters( 'bbp_pre_anonymous_post_author_email', $r['bbp_anonymous_email'] );
    534534    if ( empty( $r['bbp_anonymous_email'] ) ) {
    535         bbp_add_error( 'bbp_anonymous_email', esc_html__( '<strong>ERROR</strong>: Invalid email address.', 'bbpress' ) );
     535        bbp_add_error( 'bbp_anonymous_email', __( '<strong>ERROR</strong>: Invalid email address.', 'bbpress' ) );
    536536    }
    537537
Note: See TracChangeset for help on using the changeset viewer.