mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fix Chrome disregarding autocomplete="off" for password fields. Add autocomplete="off" to forms where the users can choose new password. Fixes #24364.
git-svn-id: http://core.svn.wordpress.org/trunk@24291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb3b7f23f7
commit
dbda48bd2a
@ -189,8 +189,8 @@ if ( ! IS_PROFILE_PAGE ) {
|
||||
} ?>
|
||||
</h2>
|
||||
|
||||
<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action('user_edit_form_tag'); ?>>
|
||||
<?php wp_nonce_field('update-user_' . $user_id) ?>
|
||||
<form id="your-profile" autocomplete="off" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action('user_edit_form_tag'); ?>>
|
||||
<?php wp_nonce_field('update-user_' . $user_id); ?>
|
||||
<?php if ( $wp_http_referer ) : ?>
|
||||
<input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -299,7 +299,7 @@ if ( current_user_can( 'create_users') ) {
|
||||
echo '<h3 id="create-new-user">' . __( 'Add New User' ) . '</h3>';
|
||||
?>
|
||||
<p><?php _e('Create a brand new user and add it to this site.'); ?></p>
|
||||
<form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>>
|
||||
<form action="" autocomplete="off" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>>
|
||||
<input name="action" type="hidden" value="createuser" />
|
||||
<?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ) ?>
|
||||
<?php
|
||||
|
@ -503,7 +503,7 @@ case 'rp' :
|
||||
login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );
|
||||
|
||||
?>
|
||||
<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass&key=' . urlencode( $_GET['key'] ) . '&login=' . urlencode( $_GET['login'] ), 'login_post' ) ); ?>" method="post">
|
||||
<form name="resetpassform" id="resetpassform" autocomplete="off" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass&key=' . urlencode( $_GET['key'] ) . '&login=' . urlencode( $_GET['login'] ), 'login_post' ) ); ?>" method="post">
|
||||
<input type="hidden" id="user_login" value="<?php echo esc_attr( $_GET['login'] ); ?>" autocomplete="off" />
|
||||
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user