From 8e5302b57f498cedf7facf7b4d4d4562ba61b5db Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 12 Sep 2007 01:08:19 +0000 Subject: [PATCH] Add cat_row filter. Props johnbillion. fixes #4926 git-svn-id: http://svn.automattic.com/wordpress/trunk@6089 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index cfbc293c5d..a231c05e7a 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -50,12 +50,14 @@ function _cat_row( $category, $level, $name_override = false ) { $category->count = number_format_i18n( $category->count ); $posts_count = ( $category->count > 0 ) ? "$category->count" : $category->count; - return " + $output = " $category->term_id " . ( $name_override ? $name_override : $pad . ' ' . $category->name ) . " $category->description $posts_count $edit\n\t\n"; + + return apply_filters('cat_row', $output); } function checked( $checked, $current) {