From 9635543e0f93ac927f5bd105474e9ca142134370 Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 5 Jul 2022 14:14:21 +0000 Subject: [PATCH] General: Properly escape `home_url()` links in `wp_page_menu()`. Props sabbirmc, tushar284, costdev. Fixes 56148. Built from https://develop.svn.wordpress.org/trunk@53656 git-svn-id: http://core.svn.wordpress.org/trunk@53215 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a571f52bc8..a4b7e3159d 100644 --- a/wp-includes/post-template.php +++ b/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'] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index a2d6af5c9e..840f6d3fea 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53655'; +$wp_version = '6.1-alpha-53656'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.