From 0a85b39a4f9df6cf4df3432b94ce05f219025807 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 6 Apr 2010 02:43:23 +0000 Subject: [PATCH] These nav_menu parameters should not be esc_html()d. fixes #12715. props ptahdunbar git-svn-id: https://develop.svn.wordpress.org/trunk@14013 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/nav-menu-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index ff1cccfdee..673497b802 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -159,11 +159,11 @@ function wp_get_nav_menu_item( $menu_item, $context = 'frontend', $args = array( $attributes .= ! empty( $menu_item->xfn ) ? ' rel="' . esc_attr( $menu_item->xfn ) .'"' : ''; $attributes .= ! empty( $menu_item->url ) ? ' href="' . esc_attr( $menu_item->url ) .'"' : ''; - $output .= esc_html( $args->before ); + $output .= $args->before; $output .= ''; - $output .= esc_html( $args->link_before . apply_filters('the_title', $menu_item->title) . $args->link_after ); + $output .= $args->link_before . apply_filters('the_title', $menu_item->title) . $args->link_after; $output .= ''; - $output .= esc_html( $args->after ); + $output .= $args->after; break;