mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
9907923011
commit
6665f90911
@ -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…
x
Reference in New Issue
Block a user