diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 231c252ae4..bf9a50d2a7 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -3398,7 +3398,7 @@ function esc_url( $url, $protocols = null, $_context = 'display' ) { if ( ( false !== strpos( $url, '[' ) ) || ( false !== strpos( $url, ']' ) ) ) { - $parsed = parse_url( $url ); + $parsed = wp_parse_url( $url ); $front = ''; if ( isset( $parsed['scheme'] ) ) {