mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 09:07:59 +02:00
Filter cat and tag names. Props jhodgdon. fixes #5861
git-svn-id: http://svn.automattic.com/wordpress/trunk@6854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1857fc1627
commit
cd1242b61f
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user