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
This commit is contained in:
ryan 2011-06-22 19:37:05 +00:00
parent 9907923011
commit 6665f90911
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 ) {