WordPress.org

Make WordPress Core

Changeset 10946


Ignore:
Timestamp:
04/16/09 17:32:06 (5 years ago)
Author:
ryan
Message:

Add echo arg to tag cloud. Props DD32. fixes #5710

File:
1 edited

Legend:

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

    r10903 r10946  
    523523        'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 
    524524        'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC', 
    525         'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag' 
     525        'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true 
    526526    ); 
    527527    $args = wp_parse_args( $args, $defaults ); 
     
    548548    $return = apply_filters( 'wp_tag_cloud', $return, $args ); 
    549549 
    550     if ( 'array' == $args['format'] ) 
     550    if ( 'array' == $args['format'] || empty($args['echo']) ) 
    551551        return $return; 
    552552 
Note: See TracChangeset for help on using the changeset viewer.