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:
parent
2808673b0c
commit
d007994bf3
|
@ -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"' : '' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue