Make WordPress Core


Ignore:
Timestamp:
03/18/2013 05:17:55 PM (11 years ago)
Author:
ryan
Message:

Pass tag ID and args array to topic_count_text_callback from wp_generate_tag_cloud().

Props najamelan, toscho
fixes #21198

File:
1 edited

Legend:

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

    r22722 r23741  
    672672        $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key;
    673673        $tag_name = $tags[ $key ]->name;
    674         $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: " .
     674        $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( call_user_func( $topic_count_text_callback, $real_count, $tag_id, $args ) ) . "' style='font-size: " .
    675675            str_replace( ',', '.', ( $smallest + ( ( $count - $min_count ) * $font_step ) ) )
    676676            . "$unit;'>$tag_name</a>";
Note: See TracChangeset for help on using the changeset viewer.