Ticket #5710: 5710.patch
| File 5710.patch, 785 bytes (added by DD32, 4 years ago) |
|---|
-
wp-includes/category-template.php
554 554 $defaults = array( 555 555 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 556 556 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC', 557 'exclude' => '', 'include' => '', 'link' => 'view' 557 'exclude' => '', 'include' => '', 'link' => 'view', 'echo' => 1 558 558 ); 559 559 $args = wp_parse_args( $args, $defaults ); 560 560 … … 579 579 580 580 $return = apply_filters( 'wp_tag_cloud', $return, $args ); 581 581 582 if ( 'array' == $args['format'] )582 if ( 'array' == $args['format'] || empty($args['echo']) ) 583 583 return $return; 584 584 585 585 echo $return;
