diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index ff8fb895da..621761efb3 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -485,52 +485,57 @@ function wp_list_categories( $args = '' ) { $r['exclude'] = ''; } - if ( !isset( $r['class'] ) ) + if ( ! isset( $r['class'] ) ) $r['class'] = ( 'category' == $r['taxonomy'] ) ? 'categories' : $r['taxonomy']; - extract( $r ); - - if ( !taxonomy_exists($taxonomy) ) + if ( ! taxonomy_exists( $r['taxonomy'] ) ) { return false; + } + + $show_option_all = $r['show_option_all']; + $show_option_none = $r['show_option_none']; $categories = get_categories( $r ); $output = ''; - if ( $title_li && 'list' == $style ) - $output = '
  • ' . $title_li . '