Allow tag cloud using multiple taxonomies. Props sorich87. Fixes #15313

git-svn-id: https://develop.svn.wordpress.org/trunk@16180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-11-04 10:45:14 +00:00
parent 75dc7c8c37
commit ef025261e7

View File

@ -536,9 +536,9 @@ function wp_tag_cloud( $args = '' ) {
foreach ( $tags as $key => $tag ) {
if ( 'edit' == $args['link'] )
$link = get_edit_tag_link( $tag->term_id, $args['taxonomy'] );
$link = get_edit_tag_link( $tag->term_id, $tag->taxonomy );
else
$link = get_term_link( intval($tag->term_id), $args['taxonomy'] );
$link = get_term_link( intval($tag->term_id), $tag->taxonomy );
if ( is_wp_error( $link ) )
return false;