diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
index a571f52bc8..a4b7e3159d 100644
a
|
b
|
function wp_page_menu( $args = array() ) { |
1443 | 1443 | if ( is_front_page() && ! is_paged() ) { |
1444 | 1444 | $class = 'class="current_page_item"'; |
1445 | 1445 | } |
1446 | | $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; |
| 1446 | $menu .= '<li ' . $class . '><a href="' . esc_url( home_url( '/' ) ) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; |
1447 | 1447 | // If the front page is a page, add it to the exclude list. |
1448 | 1448 | if ( 'page' === get_option( 'show_on_front' ) ) { |
1449 | 1449 | if ( ! empty( $list_args['exclude'] ) ) { |