WordPress.org

Make WordPress Core

Ticket #34925: 34925.patch

File 34925.patch, 2.1 KB (added by JPry, 4 years ago)

Partial revert of [34213]

  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index f554e1f..f7a7b11 100644
    function wp_login_form( $args = array() ) { 
    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( wp_login_url() ) . '" 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>
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index ea3afc6..6911334 100644
    case 'register' : 
    712712        login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
    713713?>
    714714
    715 <form name="registerform" id="registerform" action="<?php echo esc_url( wp_registration_url() ); ?>" method="post" novalidate="novalidate">
     715<form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
    716716        <p>
    717717                <label for="user_login"><?php _e('Username') ?><br />
    718718                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
    default: 
    878878        }
    879879?>
    880880
    881 <form name="loginform" id="loginform" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
     881<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    882882        <p>
    883883                <label for="user_login"><?php _e('Username') ?><br />
    884884                <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>