Changeset 8569
- Timestamp:
- 08/06/2008 03:53:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r8540 r8569 395 395 396 396 $counts = array(); 397 foreach ( (array) $tags as $ tag )398 $counts[ $ tag->name] = $tag->count;397 foreach ( (array) $tags as $key => $tag ) 398 $counts[ $key ] = $tag->count; 399 399 400 400 $min_count = min($counts); … … 427 427 $rel = ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : ''; 428 428 429 foreach ( $counts as $tag => $count ) { 430 $tag_link = clean_url( $tags[ $tag ]->link ); 431 $tag_id = $tags[ $tag ]->id; 429 foreach ( $counts as $key => $count ) { 430 $tag_link = clean_url( $tags[ $key ]->link ); 431 $tag_id = $tags[ $key ]->id; 432 $tag_name = $tags[ $key ]->name; 432 433 433 434 $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . attribute_escape( sprintf( __ngettext($single_text, $multiple_text, $count), $count ) ) . "'$rel style='font-size: " . 434 435 ( $smallest + ( ( $count - $min_count ) * $font_step ) ) 435 . "$unit;'>$tag </a>";436 . "$unit;'>$tag_name</a>"; 436 437 } 437 438
Note: See TracChangeset
for help on using the changeset viewer.