WordPress.org

Make WordPress Core

Ticket #19049: wp_tag_cloud_return.diff

File wp_tag_cloud_return.diff, 463 bytes (added by ryanhellyer, 7 years ago)

Allows wp_tag_cloud() to return value as intended.

  • wp-includes/category-template.php

     
    552552
    553553        $return = apply_filters( 'wp_tag_cloud', $return, $args );
    554554
    555         if ( 'array' == $args['format'] || empty($args['echo']) )
     555        if ( 'array' == $args['format'] || 'false' == $args['echo'] )
    556556                return $return;
    557557
    558558        echo $return;