Ticket #6015: 6015.3.diff
File 6015.3.diff, 1.2 KB (added by , 16 years ago) |
---|
-
wp-includes/category-template.php
394 394 return; 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); 401 401 $spread = max($counts) - $min_count; … … 426 426 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 438 439 switch ( $format ) :