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-user-login.php

    r5561 r5688  
    1212<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    1313    <fieldset class="bbp-form">
    14         <legend><?php _e( 'Log In', 'bbpress' ); ?></legend>
     14        <legend><?php esc_html_e( 'Log In', 'bbpress' ); ?></legend>
    1515
    1616        <div class="bbp-username">
    17             <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
     17            <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label>
    1818            <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" />
    1919        </div>
    2020
    2121        <div class="bbp-password">
    22             <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label>
     22            <label for="user_pass"><?php esc_html_e( 'Password', 'bbpress' ); ?>: </label>
    2323            <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" />
    2424        </div>
     
    2626        <div class="bbp-remember-me">
    2727            <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" />
    28             <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>
     28            <label for="rememberme"><?php esc_html_e( 'Keep me signed in', 'bbpress' ); ?></label>
    2929        </div>
    3030
     
    3333        <div class="bbp-submit-wrapper">
    3434
    35             <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>
     35            <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Log In', 'bbpress' ); ?></button>
    3636
    3737            <?php bbp_user_login_fields(); ?>
Note: See TracChangeset for help on using the changeset viewer.