From e7b243973132b555e66a0517e25232ba213bc35e Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 7 Dec 2006 10:17:25 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@819 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/classes.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'wp-includes/classes.php') diff --git a/wp-includes/classes.php b/wp-includes/classes.php index f8bb896..fb3110a 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -575,13 +575,14 @@ class Walker_Category extends Walker { function start_el($output, $category, $depth, $args) { extract($args); - $link = 'cat_name, 1 ); + $link = 'category_description) ) - $link .= 'title="'. sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name, 1)) . '"'; + $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"'; else - $link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description,$category),1) . '"'; + $link .= 'title="' . wp_specialchars( apply_filters( 'category_description', $category->category_description, $category ), 1 ) . '"'; $link .= '>'; - $link .= apply_filters('list_cats', $category->cat_name, $category).''; + $link .= apply_filters( 'list_cats', $category->cat_name, $category ).''; if ( (! empty($feed_image)) || (! empty($feed)) ) { $link .= ' '; @@ -589,9 +590,11 @@ class Walker_Category extends Walker { if ( empty($feed_image) ) $link .= '('; - $link .= 'cat_ID, $category->category_nicename ) . '"'; - if ( !empty($feed) ) { + if ( empty($feed) ) + $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; + else { $title = ' title="' . $feed . '"'; $alt = ' alt="' . $feed . '"'; $name = $feed; @@ -600,17 +603,17 @@ class Walker_Category extends Walker { $link .= '>'; - if ( !empty($feed_image) ) - $link .= "'; - else + if ( empty($feed_image) ) $link .= $name; + else + $link .= "'; $link .= ''; - if (empty($feed_image)) + if ( empty($feed_image) ) $link .= ')'; } if ( isset($show_count) && $show_count ) - $link .= ' ('.intval($category->category_count).')'; + $link .= ' (' . intval($category->category_count) . ')'; if ( isset($show_date) && $show_date ) { $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); -- cgit