Make WordPress Core

Changeset 11204 for trunk/wp-login.php


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (15 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r11162 r11204  
    309309    <p>
    310310        <label><?php _e('Username or E-mail:') ?><br />
    311         <input type="text" name="user_login" id="user_login" class="input" value="<?php echo attr($user_login); ?>" size="20" tabindex="10" /></label>
     311        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    312312    </p>
    313313<?php do_action('lostpassword_form'); ?>
    314     <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _ea('Get New Password'); ?>" tabindex="100" /></p>
     314    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e('Get New Password'); ?>" tabindex="100" /></p>
    315315</form>
    316316
     
    376376    <p>
    377377        <label><?php _e('Username') ?><br />
    378         <input type="text" name="user_login" id="user_login" class="input" value="<?php echo attr(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
     378        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
    379379    </p>
    380380    <p>
    381381        <label><?php _e('E-mail') ?><br />
    382         <input type="text" name="user_email" id="user_email" class="input" value="<?php echo attr(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
     382        <input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
    383383    </p>
    384384<?php do_action('register_form'); ?>
    385385    <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
    386386    <br class="clear" />
    387     <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _ea('Register'); ?>" tabindex="100" /></p>
     387    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e('Register'); ?>" tabindex="100" /></p>
    388388</form>
    389389
     
    463463
    464464    if ( isset($_POST['log']) )
    465         $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? attr(stripslashes($_POST['log'])) : '';
     465        $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : '';
    466466?>
    467467
     
    470470    <p>
    471471        <label><?php _e('Username') ?><br />
    472         <input type="text" name="log" id="user_login" class="input" value="<?php echo attr($user_login); ?>" size="20" tabindex="10" /></label>
     472        <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    473473    </p>
    474474    <p>
     
    477477    </p>
    478478<?php do_action('login_form'); ?>
    479     <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _ea('Remember Me'); ?></label></p>
     479    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php esc_attr_e('Remember Me'); ?></label></p>
    480480    <p class="submit">
    481         <input type="submit" name="wp-submit" id="wp-submit" value="<?php _ea('Log In'); ?>" tabindex="100" />
    482         <input type="hidden" name="redirect_to" value="<?php echo attr($redirect_to); ?>" />
     481        <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e('Log In'); ?>" tabindex="100" />
     482        <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" />
    483483        <input type="hidden" name="testcookie" value="1" />
    484484    </p>
Note: See TracChangeset for help on using the changeset viewer.