From 8e1f63c69d59cc08d52e77172be679d92622f806 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 14 Feb 2008 21:57:19 +0000 Subject: [PATCH] Filter cat and tag names. Props jhodgdon. fixes #5861 git-svn-id: https://develop.svn.wordpress.org/trunk@6854 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-post-rows.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php index 17ca71ea47..95ad1c6f7f 100644 --- a/wp-admin/edit-post-rows.php +++ b/wp-admin/edit-post-rows.php @@ -74,7 +74,7 @@ foreach($posts_columns as $column_name=>$column_display_name) { if ( !empty( $categories ) ) { $out = array(); foreach ( $categories as $c ) - $out[] = " " . wp_specialchars( $c->name) . ""; + $out[] = " " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . ""; 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[] = " " . wp_specialchars( $c->name) . ""; + $out[] = " " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . ""; echo join( ', ', $out ); } else { _e('No Tags');