From 02df4f722c84fb38ea7f5639aa6b1dac5bbd8861 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 22 Aug 2007 22:28:00 +0000 Subject: [PATCH] Add class to tag cloud links. Props filosofo. fixes #4798 git-svn-id: http://svn.automattic.com/wordpress/trunk@5917 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 366cd8553..3b29e7c1a 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -328,6 +328,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { foreach ( (array) $tags as $tag ) { $counts[$tag->name] = $tag->count; $tag_links[$tag->name] = get_tag_link( $tag->term_id ); + $tag_ids[$tag->name] = $tag->term_id; } $min_count = min($counts); @@ -353,9 +354,10 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { $rel = ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : ''; foreach ( $counts as $tag => $count ) { + $tag_id = $tag_ids[$tag]; $tag_link = clean_url($tag_links[$tag]); $tag = str_replace(' ', ' ', wp_specialchars( $tag )); - $a[] = "$tag"; }