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
This commit is contained in:
Andrew Ozz 2012-05-02 20:36:07 +00:00
parent 1f3ca85ab5
commit fd506b7f3a
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
$arrow = '<div class="wp-menu-arrow"><div></div></div>';
$title = wptexturize( $item[0] );
$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
$aria_label = esc_attr( strip_tags( $item[0] ) ); // strip the comment/plugins/updates bubbles spans but keep the pending number if any
echo "\n\t<li$class$id>";