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
This commit is contained in:
Mark Jaquith 2010-04-06 02:43:23 +00:00
parent 71d295f69b
commit 0a85b39a4f
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;