WordPress.org

Make WordPress Core

Changeset 5917


Ignore:
Timestamp:
08/22/07 22:28:00 (7 years ago)
Author:
ryan
Message:

Add class to tag cloud links. Props filosofo. fixes #4798

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r5899 r5917  
    329329        $counts[$tag->name] = $tag->count; 
    330330        $tag_links[$tag->name] = get_tag_link( $tag->term_id ); 
     331        $tag_ids[$tag->name] = $tag->term_id; 
    331332    } 
    332333 
     
    354355 
    355356    foreach ( $counts as $tag => $count ) { 
     357        $tag_id = $tag_ids[$tag]; 
    356358        $tag_link = clean_url($tag_links[$tag]); 
    357359        $tag = str_replace(' ', ' ', wp_specialchars( $tag )); 
    358         $a[] = "<a href='$tag_link' title='" . attribute_escape( sprintf( __('%d topics'), $count ) ) . "'$rel style='font-size: " . 
     360        $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . attribute_escape( sprintf( __('%d topics'), $count ) ) . "'$rel style='font-size: " . 
    359361            ( $smallest + ( ( $count - $min_count ) * $font_step ) ) 
    360362            . "$unit;'>$tag</a>"; 
Note: See TracChangeset for help on using the changeset viewer.