From 9548071ffa6b27fc966a34a94f8bf776923cdd43 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: https://develop.svn.wordpress.org/trunk@5265 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 46c4a3a370..c78fa82e49 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();