Skip to content

Commit

Permalink
Navigation: Allow HTML in nav link labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Nov 19, 2024
1 parent bab8c5a commit 94f19f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu-plugins/blocks/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function render_menu_item( $item ) {

$output .= sprintf(
$block_code,
esc_html( $item['label'] ),
wp_kses_post( $item['label'] ),
esc_url( $item['url'], ),
isset( $item['id'] ) ? intval( $item['id'] ) : '',
isset( $item['className'] ) ? esc_attr( $item['className'] ) : '',
Expand Down

0 comments on commit 94f19f2

Please sign in to comment.