WordPress.org

Make WordPress Core

Changeset 35897


Ignore:
Timestamp:
12/13/2015 02:02:04 PM (4 years ago)
Author:
swissspidy
Message:

Login: After [34213], use the login_post scheme again for login forms.

See #34925.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r35887 r35897  
    472472
    473473    $form = '
    474         <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( wp_login_url() ) . '" method="post">
     474        <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( set_url_scheme( wp_login_url(), 'login_post' ) ) . '" method="post">
    475475            ' . $login_form_top . '
    476476            <p class="login-username">
  • trunk/src/wp-login.php

    r35865 r35897  
    712712    login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
    713713?>
    714 
    715 <form name="registerform" id="registerform" action="<?php echo esc_url( wp_registration_url() ); ?>" method="post" novalidate="novalidate">
     714<form name="registerform" id="registerform" action="<?php echo esc_url( set_url_scheme( wp_registration_url(), 'login_post' ) ); ?>" method="post" novalidate="novalidate">
    716715    <p>
    717716        <label for="user_login"><?php _e('Username') ?><br />
     
    879878?>
    880879
    881 <form name="loginform" id="loginform" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
     880<form name="loginform" id="loginform" action="<?php echo esc_url( set_url_scheme( wp_login_url(), 'login_post' ) ); ?>" method="post">
    882881    <p>
    883882        <label for="user_login"><?php _e('Username') ?><br />
Note: See TracChangeset for help on using the changeset viewer.