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:
parent
75dc7c8c37
commit
ef025261e7
@ -536,9 +536,9 @@ function wp_tag_cloud( $args = '' ) {
|
|||||||
|
|
||||||
foreach ( $tags as $key => $tag ) {
|
foreach ( $tags as $key => $tag ) {
|
||||||
if ( 'edit' == $args['link'] )
|
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
|
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 ) )
|
if ( is_wp_error( $link ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user