diff --git a/wp-includes/classes.php b/wp-includes/classes.php index da54a1c64c..5cbcd88782 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1556,7 +1556,7 @@ class Walker_Category extends Walker { $link .= '>'; $link .= $cat_name . ''; - if ( (! empty($feed_image)) || (! empty($feed)) ) { + if ( !empty($feed_image) || !empty($feed) ) { $link .= ' '; if ( empty($feed_image) ) @@ -1564,9 +1564,9 @@ class Walker_Category extends Walker { $link .= ''; + $link .= ''; + if ( empty($feed_image) ) $link .= ')'; } - if ( isset($show_count) && $show_count ) + if ( !empty($show_count) ) $link .= ' (' . intval($category->count) . ')'; - if ( isset($show_date) && $show_date ) { + if ( !empty($show_date) ) $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); - } - - if ( isset($current_category) && $current_category ) - $_current_category = get_category( $current_category ); if ( 'list' == $args['style'] ) { $output .= "\t