From 6665f90911e066b152fdb5c4f69572eee075c137 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 22 Jun 2011 19:37:05 +0000 Subject: [PATCH] Fix notice in wp_tag_cloud. Props greuben. fixes #17213 git-svn-id: http://svn.automattic.com/wordpress/trunk@18326 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ) {