diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 9b05eb642e..5f04a1a7d4 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -138,6 +138,7 @@ function _cat_row( $category, $level, $name_override = false ) {
}
$class = 'alternate' == $class ? '' : 'alternate';
+ $qe_data = get_category_to_edit($category->term_id);
$category->count = number_format_i18n( $category->count );
$posts_count = ( $category->count > 0 ) ? "$category->count" : $category->count;
@@ -166,10 +167,10 @@ function _cat_row( $category, $level, $name_override = false ) {
break;
case 'name':
$output .= "
$edit";
- $output .= '';
- $output .= ' ' . attribute_escape( $category->name ) . ' ';
- $output .= ' ' . $category->slug . ' ';
- $output .= ' ' . $category->parent . ' | ';
+ $output .= '';
+ $output .= '
' . $qe_data->name . '
';
+ $output .= '
' . $qe_data->slug . '
';
+ $output .= '
' . $qe_data->parent . '
';
break;
case 'description':
$output .= "$category->description | ";
@@ -299,6 +300,7 @@ function link_cat_row( $category, $name_override = false ) {
}
$class = 'alternate' == $class ? '' : 'alternate';
+ $qe_data = get_term_to_edit($category->term_id, 'link_category');
$category->count = number_format_i18n( $category->count );
$count = ( $category->count > 0 ) ? "$category->count" : $category->count;
@@ -326,10 +328,10 @@ function link_cat_row( $category, $name_override = false ) {
break;
case 'name':
$output .= "$edit";
- $output .= '';
- $output .= ' ' . attribute_escape( $category->name ) . ' ';
- $output .= ' ' . $category->slug . ' ';
- $output .= ' ' . $category->parent . ' | ';
+ $output .= '';
+ $output .= '
' . $qe_data->name . '
';
+ $output .= '
' . $qe_data->slug . '
';
+ $output .= '
' . $qe_data->parent . '
';
break;
case 'description':
$output .= "$category->description | ";
@@ -578,6 +580,7 @@ function _tag_row( $tag, $class = '' ) {
$count = ( $count > 0 ) ? "$count" : $count;
$name = apply_filters( 'term_name', $tag->name );
+ $qe_data = get_term($tag->term_id, 'post_tag', object, 'edit');
$edit_link = "edit-tags.php?action=edit&tag_ID=$tag->term_id";
$out = '';
$out .= '';
@@ -609,9 +612,9 @@ function _tag_row( $tag, $class = '' ) {
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
$out .= "$link$sep";
}
- $out .= '';
- $out .= '
' . attribute_escape($tag->name) . '
';
- $out .= '
' . $tag->slug . '
';
+ $out .= '';
+ $out .= '
' . $qe_data->name . '
';
+ $out .= '
' . $qe_data->slug . '
';
break;
case 'slug':
$out .= "$tag->slug | ";