These nav_menu parameters should not be esc_html()d. fixes #12715. props ptahdunbar

git-svn-id: http://svn.automattic.com/wordpress/trunk@14013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2010-04-06 02:43:23 +00:00
parent aebc2cb826
commit 17ee0e577a
1 changed files with 3 additions and 3 deletions

View File

@ -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 .= '<a'. $attributes .'>';
$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 .= '</a>';
$output .= esc_html( $args->after );
$output .= $args->after;
break;