Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/19/2015 04:27:37 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Templates: Escape all gettext output in default template parts. See #1999.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-anonymous.php

    r5561 r5688  
    1515
    1616    <fieldset class="bbp-form">
    17         <legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? _e( 'Author Information', 'bbpress' ) : _e( 'Your information:', 'bbpress' ); ?></legend>
     17        <legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? esc_html_e( 'Author Information', 'bbpress' ) : esc_html_e( 'Your information:', 'bbpress' ); ?></legend>
    1818
    1919        <?php do_action( 'bbp_theme_anonymous_form_extras_top' ); ?>
    2020
    2121        <p>
    22             <label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br />
     22            <label for="bbp_anonymous_author"><?php esc_html_e( 'Name (required):', 'bbpress' ); ?></label><br />
    2323            <input type="text" id="bbp_anonymous_author"  value="<?php bbp_author_display_name(); ?>" size="40" name="bbp_anonymous_name" />
    2424        </p>
    2525
    2626        <p>
    27             <label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
     27            <label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    2828            <input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" size="40" name="bbp_anonymous_email" />
    2929        </p>
    3030
    3131        <p>
    32             <label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br />
     32            <label for="bbp_anonymous_website"><?php esc_html_e( 'Website:', 'bbpress' ); ?></label><br />
    3333            <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" name="bbp_anonymous_website" />
    3434        </p>
Note: See TracChangeset for help on using the changeset viewer.