Filter cat and tag names. Props jhodgdon. fixes #5861

git-svn-id: https://develop.svn.wordpress.org/trunk@6854 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-14 21:57:19 +00:00
parent 1101f9750a
commit 8e1f63c69d
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
if ( !empty( $categories ) ) {
$out = array();
foreach ( $categories as $c )
$out[] = "<a href='edit.php?category_name=$c->slug'> " . wp_specialchars( $c->name) . "</a>";
$out[] = "<a href='edit.php?category_name=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . "</a>";
echo join( ', ', $out );
} else {
_e('Uncategorized');
@ -90,7 +90,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
if ( !empty( $tags ) ) {
$out = array();
foreach ( $tags as $c )
$out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars( $c->name) . "</a>";
$out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>";
echo join( ', ', $out );
} else {
_e('No Tags');