Make WordPress Core

Ticket #10315: 10315.2.patch

File 10315.2.patch, 1.4 KB (added by hakre, 17 years ago)

Updated patch so that seperator is the only seperator and defaults to the default seperator ("\n").

  • wp-includes/category-template.php

     
    521521function wp_tag_cloud( $args = '' ) {
    522522        $defaults = array(
    523523                'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
    524                 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',
     524                'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC',
    525525                'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true
    526526        );
    527527        $args = wp_parse_args( $args, $defaults );
     
    597597        global $wp_rewrite;
    598598        $defaults = array(
    599599                'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 0,
    600                 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',
    601                 'topic_count_text_callback' => 'default_topic_count_text',
    602                 'filter' => 1,
     600                'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC',
     601                'topic_count_text_callback' => 'default_topic_count_text', 'filter' => 1,
    603602        );
    604603
    605604        if ( !isset( $args['topic_count_text_callback'] ) && isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) {
     
    677676                $return .= "</li>\n</ul>\n";
    678677                break;
    679678        default :
    680                 $return = join( "\n", $a );
     679                $return = join( $separator, $a );
    681680                break;
    682681        endswitch;
    683682