Login: After [34213], use the `login_post` scheme again for login forms.
See #34925. Built from https://develop.svn.wordpress.org/trunk@35897 git-svn-id: http://core.svn.wordpress.org/trunk@35861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b804b26269
commit
2981d66990
|
@ -471,7 +471,7 @@ function wp_login_form( $args = array() ) {
|
||||||
$login_form_bottom = apply_filters( 'login_form_bottom', '', $args );
|
$login_form_bottom = apply_filters( 'login_form_bottom', '', $args );
|
||||||
|
|
||||||
$form = '
|
$form = '
|
||||||
<form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( wp_login_url() ) . '" method="post">
|
<form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( set_url_scheme( wp_login_url(), 'login_post' ) ) . '" method="post">
|
||||||
' . $login_form_top . '
|
' . $login_form_top . '
|
||||||
<p class="login-username">
|
<p class="login-username">
|
||||||
<label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label>
|
<label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-35896';
|
$wp_version = '4.5-alpha-35897';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -711,8 +711,7 @@ case 'register' :
|
||||||
$redirect_to = apply_filters( 'registration_redirect', $registration_redirect );
|
$redirect_to = apply_filters( 'registration_redirect', $registration_redirect );
|
||||||
login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
|
login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
|
||||||
?>
|
?>
|
||||||
|
<form name="registerform" id="registerform" action="<?php echo esc_url( set_url_scheme( wp_registration_url(), 'login_post' ) ); ?>" method="post" novalidate="novalidate">
|
||||||
<form name="registerform" id="registerform" action="<?php echo esc_url( wp_registration_url() ); ?>" method="post" novalidate="novalidate">
|
|
||||||
<p>
|
<p>
|
||||||
<label for="user_login"><?php _e('Username') ?><br />
|
<label for="user_login"><?php _e('Username') ?><br />
|
||||||
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
|
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
|
||||||
|
@ -878,7 +877,7 @@ default:
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="loginform" id="loginform" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
|
<form name="loginform" id="loginform" action="<?php echo esc_url( set_url_scheme( wp_login_url(), 'login_post' ) ); ?>" method="post">
|
||||||
<p>
|
<p>
|
||||||
<label for="user_login"><?php _e('Username') ?><br />
|
<label for="user_login"><?php _e('Username') ?><br />
|
||||||
<input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" /></label>
|
<input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" /></label>
|
||||||
|
|
Loading…
Reference in New Issue