Fix notice in wp_tag_cloud. Props greuben. fixes #17213
git-svn-id: https://develop.svn.wordpress.org/trunk@18326 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b1e314fbf7
commit
6ca6c82d2b
@ -533,7 +533,7 @@ function wp_tag_cloud( $args = '' ) {
|
||||
|
||||
$tags = get_terms( $args['taxonomy'], array_merge( $args, array( 'orderby' => 'count', 'order' => 'DESC' ) ) ); // Always query top tags
|
||||
|
||||
if ( empty( $tags ) )
|
||||
if ( empty( $tags ) || is_wp_error( $tags ) )
|
||||
return;
|
||||
|
||||
foreach ( $tags as $key => $tag ) {
|
||||
|
Loading…
Reference in New Issue
Block a user