WordPress.org

Make WordPress Core

Ticket #5710: 5710.patch

File 5710.patch, 785 bytes (added by DD32, 10 years ago)
  • wp-includes/category-template.php

     
    554554        $defaults = array(
    555555                'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
    556556                'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',
    557                 'exclude' => '', 'include' => '', 'link' => 'view'
     557                'exclude' => '', 'include' => '', 'link' => 'view', 'echo' => 1
    558558        );
    559559        $args = wp_parse_args( $args, $defaults );
    560560
     
    579579
    580580        $return = apply_filters( 'wp_tag_cloud', $return, $args );
    581581
    582         if ( 'array' == $args['format'] )
     582        if ( 'array' == $args['format'] || empty($args['echo']) )
    583583                return $return;
    584584
    585585        echo $return;