mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Fix the current page default redirect in wp_login_form(). props kawauso, see #17243.
git-svn-id: https://develop.svn.wordpress.org/trunk@19032 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b9215e193e
commit
08073035a6
@ -235,7 +235,7 @@ function wp_login_url($redirect = '', $force_reauth = false) {
|
||||
*/
|
||||
function wp_login_form( $args = array() ) {
|
||||
$defaults = array( 'echo' => true,
|
||||
'redirect' => site_url( $_SERVER['REQUEST_URI'] ), // Default redirect is back to the current page
|
||||
'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page
|
||||
'form_id' => 'loginform',
|
||||
'label_username' => __( 'Username' ),
|
||||
'label_password' => __( 'Password' ),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user