WordPress.org

Make WordPress Core

Ticket #35103: 35103.2.patch

File 35103.2.patch, 806 bytes (added by KrissieV, 5 years ago)

Reverts the action on the login form to site_url()

  • wp-includes/general-template.php

     
    471471        $login_form_bottom = apply_filters( 'login_form_bottom', '', $args );
    472472
    473473        $form = '
    474                 <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( set_url_scheme( wp_login_url(), 'login_post' ) ) . '" method="post">
     474                <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( site_url( 'wp-login.php', 'login_post' ) ) . '" method="post">
    475475                        ' . $login_form_top . '
    476476                        <p class="login-username">
    477477                                <label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label>