Skip to content

Commit 94f19f2

Browse files
committed
Navigation: Allow HTML in nav link labels
1 parent bab8c5a commit 94f19f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mu-plugins/blocks/navigation/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function render_menu_item( $item ) {
148148

149149
$output .= sprintf(
150150
$block_code,
151-
esc_html( $item['label'] ),
151+
wp_kses_post( $item['label'] ),
152152
esc_url( $item['url'], ),
153153
isset( $item['id'] ) ? intval( $item['id'] ) : '',
154154
isset( $item['className'] ) ? esc_attr( $item['className'] ) : '',

0 commit comments

Comments
 (0)