mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Escape the class arg in wp_list_categories. props hakre, fixes #11514.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81a8f2d3ce
commit
7b010efc77
@ -438,7 +438,7 @@ function wp_list_categories( $args = '' ) {
|
||||
|
||||
$output = '';
|
||||
if ( $title_li && 'list' == $style )
|
||||
$output = '<li class="' . $class . '">' . $title_li . '<ul>';
|
||||
$output = '<li class="' . esc_attr( $class ) . '">' . $title_li . '<ul>';
|
||||
|
||||
if ( empty( $categories ) ) {
|
||||
if ( ! empty( $show_option_none ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user