Skip to content

Commit fd506b7

Browse files
committed
Admin menu: change to strip_tags() for the aria-label attributes as it's faster, fixes #20373
git-svn-id: https://develop.svn.wordpress.org/trunk@20698 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1f3ca85 commit fd506b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-admin/menu-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
7373
$arrow = '<div class="wp-menu-arrow"><div></div></div>';
7474

7575
$title = wptexturize( $item[0] );
76-
$aria_label = esc_attr( wp_strip_all_tags( $item[0], true ) ); // strip the comment/plugins/updates bubbles spans but keep the pending number if any
76+
$aria_label = esc_attr( strip_tags( $item[0] ) ); // strip the comment/plugins/updates bubbles spans but keep the pending number if any
7777

7878
echo "\n\t<li$class$id>";
7979

0 commit comments

Comments
 (0)