From 6ca6c82d2b721d28fc3cd33f4d06e79857e822ad Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 22 Jun 2011 19:37:05 +0000 Subject: [PATCH] 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 --- wp-includes/category-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 6514a631b1..39e68594bd 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -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 ) {