Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17444 r18326  
    8383    }
    8484
    85     // Filter name is plural because we return alot of categories not just one
     85    // Filter name is plural because we return alot of categories (possibly more than #13237) not just one
    8686    return apply_filters( 'get_the_categories', $categories );
    8787}
     
    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
     
    10651065 * Retrieve the terms of the taxonomy that are attached to the post.
    10661066 *
    1067  * This function can only be used within the loop.
    1068  *
    10691067 * @since 2.5.0
    10701068 *
Note: See TracChangeset for help on using the changeset viewer.