From 974625d962c117bdec3a235ace75bd085f0727e8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 3 Dec 2013 20:51:19 +0000 Subject: [PATCH] wp_list_categories(): Add cat-item-none and cat-item-all classes to the none/all options. props SergeyBiryukov. fixes #24428. Built from https://develop.svn.wordpress.org/trunk@26588 git-svn-id: http://core.svn.wordpress.org/trunk@26478 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 57f7cb9ada..6ffd9d35ef 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -452,7 +452,7 @@ function wp_list_categories( $args = '' ) { if ( empty( $categories ) ) { if ( ! empty( $show_option_none ) ) { if ( 'list' == $style ) - $output .= '
  • ' . $show_option_none . '
  • '; + $output .= '
  • ' . $show_option_none . '
  • '; else $output .= $show_option_none; } @@ -461,7 +461,7 @@ function wp_list_categories( $args = '' ) { $posts_page = ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ) ? get_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' ); $posts_page = esc_url( $posts_page ); if ( 'list' == $style ) - $output .= "
  • $show_option_all
  • "; + $output .= "
  • $show_option_all
  • "; else $output .= "$show_option_all"; }