Pass tag ID and args array to topic_count_text_callback from wp_generate_tag_cloud().
Props najamelan, toscho fixes #21198 git-svn-id: https://develop.svn.wordpress.org/trunk@23741 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5cf0bc9be0
commit
b16e4eaf58
|
@ -671,7 +671,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) {
|
||||||
$tag_link = '#' != $tag->link ? esc_url( $tag->link ) : '#';
|
$tag_link = '#' != $tag->link ? esc_url( $tag->link ) : '#';
|
||||||
$tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key;
|
$tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key;
|
||||||
$tag_name = $tags[ $key ]->name;
|
$tag_name = $tags[ $key ]->name;
|
||||||
$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: " .
|
$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: " .
|
||||||
str_replace( ',', '.', ( $smallest + ( ( $count - $min_count ) * $font_step ) ) )
|
str_replace( ',', '.', ( $smallest + ( ( $count - $min_count ) * $font_step ) ) )
|
||||||
. "$unit;'>$tag_name</a>";
|
. "$unit;'>$tag_name</a>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue