Ticket #5710: 5710.diff
| File 5710.diff, 880 bytes (added by AaronCampbell, 4 years ago) |
|---|
-
wp-includes/category-template.php
308 308 } 309 309 310 310 function wp_tag_cloud( $args = '' ) { 311 $tag_cloud = get_tag_cloud($args); 312 $tag_cloud = apply_filters( 'wp_tag_cloud', $tag_cloud, $args ); 313 echo $tag_cloud; 314 } 315 316 function get_tag_cloud( $args = '' ) { 311 317 $defaults = array( 312 318 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 313 319 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC', … … 325 331 if ( is_wp_error( $return ) ) 326 332 return false; 327 333 328 $return = apply_filters( 'wp_tag_cloud', $return, $args ); 329 330 if ( 'array' == $args['format'] ) 331 return $return; 332 333 echo $return; 334 return $return; 334 335 } 335 336 336 337 // $tags = prefetched tag array ( get_tags() )
