| 1 | Index: wp-includes/category-template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/category-template.php (revision 6199) |
|---|
| 4 | +++ wp-includes/category-template.php (working copy) |
|---|
| 5 | @@ -323,8 +323,18 @@ |
|---|
| 6 | $return = wp_generate_tag_cloud( $tags, $args ); // Here's where those top tags get sorted according to $args |
|---|
| 7 | if ( is_wp_error( $return ) ) |
|---|
| 8 | return false; |
|---|
| 9 | - else |
|---|
| 10 | - echo apply_filters( 'wp_tag_cloud', $return, $args ); |
|---|
| 11 | + else |
|---|
| 12 | + { |
|---|
| 13 | + $return = apply_filters( 'wp_tag_cloud', $return, $args ); |
|---|
| 14 | + if ( 'array' == $args['format'] ) |
|---|
| 15 | + { |
|---|
| 16 | + return $return; |
|---|
| 17 | + } |
|---|
| 18 | + else |
|---|
| 19 | + { |
|---|
| 20 | + echo $return; |
|---|
| 21 | + } |
|---|
| 22 | + } |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | // $tags = prefetched tag array ( get_tags() ) |
|---|