Make WordPress Core

Changeset 18326


Ignore:
Timestamp:
06/22/2011 07:37:05 PM (14 years ago)
Author:
ryan
Message:

Fix notice in wp_tag_cloud. Props greuben. fixes #17213

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r18268 r18326  
    534534    $tags = get_terms( $args['taxonomy'], array_merge( $args, array( 'orderby' => 'count', 'order' => 'DESC' ) ) ); // Always query top tags
    535535
    536     if ( empty( $tags ) )
     536    if ( empty( $tags ) || is_wp_error( $tags ) )
    537537        return;
    538538
Note: See TracChangeset for help on using the changeset viewer.