From 41099f6e33ec9e9b872eb2e90547af59b45b0067 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 8 Oct 2009 21:51:34 +0000 Subject: [PATCH] Allow the separator in wp_tag_cloud and wp_generate_tag_cloud to be specified. Fixes #10315 props ramiy and filosofo. git-svn-id: http://svn.automattic.com/wordpress/trunk@12014 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;