Skip to content

Commit

Permalink
Admin menu: change to strip_tags() for the aria-label attributes as i…
Browse files Browse the repository at this point in the history
…t's faster, fixes #20373

git-svn-id: http://core.svn.wordpress.org/trunk@20698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
azaozz committed May 2, 2012
1 parent 30e6bb6 commit a0beb9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-admin/menu-header.php
Expand Up @@ -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>";

Expand Down

0 comments on commit a0beb9a

Please sign in to comment.