Skip to content

Commit 41c789b

Browse files
committed
Don’t escape the html comment.
1 parent dd3ac5f commit 41c789b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Walker/Nav_Menu_Item_Edit_Walker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0
2626
// Generates the HTML
2727
ob_start();
2828
do_action( 'carbon_fields_print_nav_menu_item_container_fields', $item, $output, $depth, $args, $id );
29-
echo esc_html( $flag );
29+
echo $flag; // XSS ok. Just an html comment.
3030
$fields = ob_get_clean();
3131

3232
// List of possible insertion markers, this may vary between WP Core versions

0 commit comments

Comments
 (0)