Changeset 16313 for trunk/wp-includes/category-template.php
- Timestamp:
- 11/11/2010 10:50:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r16307 r16313 678 678 $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key; 679 679 $tag_name = $tags[ $key ]->name; 680 $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( $topic_count_text_callback($real_count ) ) . "' style='font-size: " .680 $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( call_user_func( 'topic_count_text_callback', $real_count ) ) . "' style='font-size: " . 681 681 ( $smallest + ( ( $count - $min_count ) * $font_step ) ) 682 682 . "$unit;'>$tag_name</a>"; … … 701 701 else 702 702 return $return; 703 } 704 705 /** 706 * Callback for comparing tags based on name 707 * 708 * @since 3.1.0 709 * @access private 710 */ 711 function _wp_tag_cloud_name_sort_cb( $a, $b ) { 712 return strnatcasecmp( $a->name, $b->name ); 713 } 714 715 /** 716 * Callback for comparing tags based on count 717 * 718 * @since 3.1.0 719 * @access private 720 */ 721 function _wp_tag_cloud_count_sort_cb( $a, $b ) { 722 return ( $a->count > $b->count ); 703 723 } 704 724
Note: See TracChangeset
for help on using the changeset viewer.