From 24e1d664713af1763717b280a349088006d970da Mon Sep 17 00:00:00 2001 From: rob1n Date: Fri, 13 Apr 2007 23:20:14 +0000 Subject: [PATCH] Respect show_option_all in wp_list_categories(). Props westi. fixes #4145 git-svn-id: http://svn.automattic.com/wordpress/trunk@5265 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 46c4a3a37..c78fa82e4 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -248,7 +248,13 @@ function wp_list_categories($args = '') { $output .= __("No categories"); } else { global $wp_query; - + + if( !empty($show_option_all) ) + if ('list' == $style ) + $output .= '
  • ' . $show_option_all . '
  • '; + else + $output .= '' . $show_option_all . ''; + if ( is_category() ) $r['current_category'] = $wp_query->get_queried_object_id();