Ticket #12715: remove_esc_html_nav_menus.diff

File remove_esc_html_nav_menus.diff, 908 bytes (added by ptahdunbar, 3 years ago)
Line 
1Index: wp-includes/nav-menu-template.php
2===================================================================
3--- wp-includes/nav-menu-template.php   (revision 13998)
4+++ wp-includes/nav-menu-template.php   (working copy)
5@@ -159,11 +159,11 @@
6                        $attributes .= ! empty( $menu_item->xfn )        ? ' rel="'    . esc_attr( $menu_item->xfn        ) .'"' : '';
7                        $attributes .= ! empty( $menu_item->url )        ? ' href="'   . esc_attr( $menu_item->url        ) .'"' : '';
8 
9-                       $output .= esc_html( $args->before );
10+                       $output .= $args->before;
11                        $output .= '<a'. $attributes .'>';
12-                       $output .= esc_html( $args->link_before . apply_filters('the_title', $menu_item->title) . $args->link_after );
13+                       $output .= $args->link_before . apply_filters('the_title', $menu_item->title) . $args->link_after;
14                        $output .= '</a>';
15-                       $output .= esc_html( $args->after );
16+                       $output .= $args->after;
17 
18                        break;
19