Return, don't echo, array. Props Otto42. fixes #5155
git-svn-id: https://develop.svn.wordpress.org/trunk@6616 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
511e9c1b53
commit
39da2f0eec
@ -321,10 +321,16 @@ function wp_tag_cloud( $args = '' ) {
|
||||
return;
|
||||
|
||||
$return = wp_generate_tag_cloud( $tags, $args ); // Here's where those top tags get sorted according to $args
|
||||
|
||||
if ( is_wp_error( $return ) )
|
||||
return false;
|
||||
else
|
||||
echo apply_filters( 'wp_tag_cloud', $return, $args );
|
||||
|
||||
$return = apply_filters( 'wp_tag_cloud', $return, $args );
|
||||
|
||||
if ( 'array' == $args['format'] )
|
||||
return $return;
|
||||
|
||||
echo $return;
|
||||
}
|
||||
|
||||
// $tags = prefetched tag array ( get_tags() )
|
||||
|
Loading…
Reference in New Issue
Block a user