Skip to content

Commit d755253

Browse files
authored
Remove esc_html() from $item->title
Removes esc_html() from $item->title since the use of HTML in the title is allowed.
1 parent d856aae commit d755253

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

class-wp-bootstrap-navwalker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0
245245
}
246246

247247
/** This filter is documented in wp-includes/post-template.php */
248-
$title = apply_filters( 'the_title', esc_html( $item->title ), $item->ID );
248+
$title = apply_filters( 'the_title', $item->title, $item->ID );
249249

250250
/**
251251
* Filters a menu item's title.

0 commit comments

Comments
 (0)