Merge pull request #5492 from Cammy-the-block/master

Fixed my account setting values to wrong user submitted strings.
This commit is contained in:
Mike Jolley 2014-05-22 10:00:22 +01:00
commit 0248d5be9d
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<p class="form-row form-row-wide">
<label for="username"><?php _e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="username" />
<input type="text" class="input-text" name="username" id="username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
</p>
<p class="form-row form-row-wide">
<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
@ -86,7 +86,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<p class="form-row form-row-wide">
<label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password" id="reg_password" value="<?php if ( ! empty( $_POST['password'] ) ) echo esc_attr( $_POST['password'] ); ?>" />
<input type="password" class="input-text" name="password" id="reg_password" />
</p>
<?php endif; ?>