mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
9daf458ff0
commit
0b6729c3f9
@ -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
Block a user