From c4cffaad137e4f62421d3c06da900abbe4d20f6f Mon Sep 17 00:00:00 2001 From: azaozz Date: Wed, 12 Nov 2008 21:55:24 +0000 Subject: [PATCH] Filter category and tag for editing when using QE, fixes #8146 git-svn-id: http://svn.automattic.com/wordpress/trunk@9648 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) 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 .= ''; 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 .= ''; 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 .= ''; break; case 'slug': $out .= "$tag->slug";