From 1aac5a843c0fc910204b25477b45c0d63573d513 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 5 Jul 2022 14:12:06 +0000 Subject: [PATCH] General: Properly escape `home_url()` links in `wp_page_menu()`. Props sabbirmc, tushar284, costdev. Fixes 56148. git-svn-id: https://develop.svn.wordpress.org/trunk@53656 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index a571f52bc8..a4b7e3159d 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -1443,7 +1443,7 @@ function wp_page_menu( $args = array() ) { if ( is_front_page() && ! is_paged() ) { $class = 'class="current_page_item"'; } - $menu .= '
  • ' . $args['link_before'] . $text . $args['link_after'] . '
  • '; + $menu .= '
  • ' . $args['link_before'] . $text . $args['link_after'] . '
  • '; // If the front page is a page, add it to the exclude list. if ( 'page' === get_option( 'show_on_front' ) ) { if ( ! empty( $list_args['exclude'] ) ) {