WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/02/2012 08:36:07 PM (9 years ago)
Author:
azaozz
Message:

Admin menu: change to strip_tags() for the aria-label attributes as it's faster, fixes #20373

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu-header.php

    r20680 r20698  
    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>";
Note: See TracChangeset for help on using the changeset viewer.