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.

Built from https://develop.svn.wordpress.org/trunk@28360


git-svn-id: http://core.svn.wordpress.org/trunk@28188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-11 00:05:15 +00:00
parent 9daf458ff0
commit 0b6729c3f9
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"' : '' );