Use login_post context for wp_login_form action. props mdawaffe, see #18137 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2d148f51de
commit
8d7a97abf9
|
@ -270,7 +270,7 @@ function wp_login_form( $args = array() ) {
|
||||||
$args = wp_parse_args( $args, apply_filters( 'login_form_defaults', $defaults ) );
|
$args = wp_parse_args( $args, apply_filters( 'login_form_defaults', $defaults ) );
|
||||||
|
|
||||||
$form = '
|
$form = '
|
||||||
<form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . site_url( 'wp-login.php', 'login' ) . '" method="post">
|
<form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . site_url( 'wp-login.php', 'login_post' ) . '" method="post">
|
||||||
' . apply_filters( 'login_form_top', '', $args ) . '
|
' . apply_filters( 'login_form_top', '', $args ) . '
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in New Issue