diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 468e065586..206761aaef 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1418,6 +1418,7 @@ if ( ! function_exists( 'wp_validate_redirect' ) ) : $path = ''; if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { $path = dirname( parse_url( 'http://placeholder' . $_SERVER['REQUEST_URI'], PHP_URL_PATH ) . '?' ); + $path = wp_normalize_path( $path ); } $location = '/' . ltrim( $path . '/', '/' ) . $location; } diff --git a/wp-includes/version.php b/wp-includes/version.php index f08acb103a..39b23db8c1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta3-46471'; +$wp_version = '5.3-beta3-46472'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.