Make WordPress Core

Changeset 6616


Ignore:
Timestamp:
01/14/2008 10:35:43 PM (19 years ago)
Author:
ryan
Message:

Return, don't echo, array. Props Otto42. fixes #5155

File:
1 edited

Legend:

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

    r6595 r6616  
    322322
    323323        $return = wp_generate_tag_cloud( $tags, $args ); // Here's where those top tags get sorted according to $args
     324
    324325        if ( is_wp_error( $return ) )
    325326                return false;
    326         else
    327                 echo apply_filters( 'wp_tag_cloud', $return, $args );
     327
     328        $return = apply_filters( 'wp_tag_cloud', $return, $args );
     329
     330        if ( 'array' == $args['format'] )
     331                return $return;
     332
     333        echo $return;
    328334}
    329335
Note: See TracChangeset for help on using the changeset viewer.