diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 026d190108..087f47ad2a 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -492,7 +492,7 @@ function wp_login_form( $args = array() ) { function wp_lostpassword_url( $redirect = '' ) { $args = array( 'action' => 'lostpassword' ); if ( !empty($redirect) ) { - $args['redirect_to'] = $redirect; + $args['redirect_to'] = urlencode( $redirect ); } $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8669137f58..e1410eb3ac 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41120'; +$wp_version = '4.9-alpha-41121'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.