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
This commit is contained in:
westi 2009-10-08 21:51:34 +00:00
parent 7fc17ec0bd
commit 41099f6e33
1 changed files with 4 additions and 4 deletions

View File

@ -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 .= "</li>\n</ul>\n";
break;
default :
$return = join( "\n", $a );
$return = join( $separator, $a );
break;
endswitch;