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:
Ryan Boren 2011-06-22 19:37:05 +00:00
parent b1e314fbf7
commit 6ca6c82d2b
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {