In `WP_Terms_List_Table::single_row()`, call `sanitize_term()` on the passed term (`$tag`).

Props oso96_2000, c3mdigital, scribu. 
It takes a village.
Fixes #16864.


git-svn-id: https://develop.svn.wordpress.org/trunk@28360 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-05-11 00:04:38 +00:00
parent 2808673b0c
commit d007994bf3
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ class WP_Terms_List_Table extends WP_List_Table {
}
function single_row( $tag, $level = 0 ) {
global $taxonomy;
$tag = sanitize_term( $tag, $taxonomy );
static $row_class = '';
$row_class = ( $row_class == '' ? ' class="alternate"' : '' );