From fd506b7f3ada1a09f92a00caa0b5c751d2d0c5fc Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 2 May 2012 20:36:07 +0000 Subject: [PATCH] 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 --- wp-admin/menu-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index 72639ec2ed..017f676acf 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -73,7 +73,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { $arrow = ''; $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";