diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index ea369216b..96c5322ac 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -528,7 +528,7 @@ function wp_list_categories( $args = '' ) { function wp_tag_cloud( $args = '' ) { $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, - 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC', + 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true ); $args = wp_parse_args( $args, $defaults ); @@ -616,9 +616,9 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { global $wp_rewrite; $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 0, - 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC', + 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'topic_count_text_callback' => 'default_topic_count_text', - 'filter' => 1, 'topic_count_scale_callback' => 'default_topic_count_scale' + 'topic_count_scale_callback' => 'default_topic_count_scale', 'filter' => 1, ); if ( !isset( $args['topic_count_text_callback'] ) && isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) { @@ -695,7 +695,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { $return .= "\n\n"; break; default : - $return = join( "\n", $a ); + $return = join( $separator, $a ); break; endswitch;