Make WordPress Core


Ignore:
Timestamp:
09/15/2015 05:10:24 PM (9 years ago)
Author:
johnbillion
Message:

Implement wp_login_url() and wp_registration_url() in places where wp-login.php is currently hard-coded.

See #31495
Props GregLone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r33924 r34213  
    743743?>
    744744
    745 <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate">
     745<form name="registerform" id="registerform" action="<?php echo esc_url( wp_registration_url() ); ?>" method="post" novalidate="novalidate">
    746746    <p>
    747747        <label for="user_login"><?php _e('Username') ?><br />
     
    909909?>
    910910
    911 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
     911<form name="loginform" id="loginform" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
    912912    <p>
    913913        <label for="user_login"><?php _e('Username') ?><br />
Note: See TracChangeset for help on using the changeset viewer.