Make WordPress Core


Ignore:
Timestamp:
09/03/2007 11:32:58 PM (19 years ago)
Author:
ryan
Message:

Remove trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r5917 r6026  
    8787}
    8888
    89 function _usort_terms_by_ID($a, $b) { 
    90         if ( $a->term_id > $b->term_id ) 
    91                 return 1; 
    92         elseif ( $a->term_id < $b->term_id ) 
    93                 return -1; 
    94         else 
    95                 return 0; 
     89function _usort_terms_by_ID($a, $b) {
     90        if ( $a->term_id > $b->term_id )
     91                return 1;
     92        elseif ( $a->term_id < $b->term_id )
     93                return -1;
     94        else
     95                return 0;
    9696}
    9797
    … …  
    186186function wp_dropdown_categories($args = '') {
    187187        $defaults = array(
    188                 'show_option_all' => '', 'show_option_none' => '', 
    189                 'orderby' => 'ID', 'order' => 'ASC', 
    190                 'show_last_update' => 0, 'show_count' => 0, 
    191                 'hide_empty' => 1, 'child_of' => 0, 
    192                 'exclude' => '', 'echo' => 1, 
    193                 'selected' => 0, 'hierarchical' => 0, 
     188                'show_option_all' => '', 'show_option_none' => '',
     189                'orderby' => 'ID', 'order' => 'ASC',
     190                'show_last_update' => 0, 'show_count' => 0,
     191                'hide_empty' => 1, 'child_of' => 0,
     192                'exclude' => '', 'echo' => 1,
     193                'selected' => 0, 'hierarchical' => 0,
    194194                'name' => 'cat', 'class' => 'postform'
    195195        );
    … …  
    236236function wp_list_categories($args = '') {
    237237        $defaults = array(
    238                 'show_option_all' => '', 'orderby' => 'name', 
    239                 'order' => 'ASC', 'show_last_update' => 0, 
    240                 'style' => 'list', 'show_count' => 0, 
    241                 'hide_empty' => 1, 'use_desc_for_title' => 1, 
    242                 'child_of' => 0, 'feed' => '', 
    243                 'feed_image' => '', 'exclude' => '', 
     238                'show_option_all' => '', 'orderby' => 'name',
     239                'order' => 'ASC', 'show_last_update' => 0,
     240                'style' => 'list', 'show_count' => 0,
     241                'hide_empty' => 1, 'use_desc_for_title' => 1,
     242                'child_of' => 0, 'feed' => '',
     243                'feed_image' => '', 'exclude' => '',
    244244                'hierarchical' => true, 'title_li' => __('Categories')
    245245        );
    … …  
    272272
    273273                if( !empty($show_option_all) )
    274                         if ('list' == $style ) 
     274                        if ('list' == $style )
    275275                                $output .= '<li><a href="' .  get_bloginfo('url')  . '">' . $show_option_all . '</a></li>';
    276276                        else
    … …  
    296296function wp_tag_cloud( $args = '' ) {
    297297        $defaults = array(
    298                 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 
     298                'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
    299299                'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',
    300300                'exclude' => '', 'include' => ''
    … …  
    418418
    419419function get_the_tags( $id = 0 ) {
    420         global $post; 
     420        global $post;
    421421
    422422        $id = (int) $id;
    423423
    424         if ( ! $id && ! in_the_loop() ) 
    425                 return false; // in-the-loop function 
    426 
    427         if ( !$id ) 
     424        if ( ! $id && ! in_the_loop() )
     425                return false; // in-the-loop function
     426
     427        if ( !$id )
    428428                $id = (int) $post->ID;
    429429
    … …  
    433433
    434434        $tags = apply_filters( 'get_the_tags', $tags );
    435         if ( empty( $tags ) ) 
    436                 return false; 
    437         return $tags; 
     435        if ( empty( $tags ) )
     436                return false;
     437        return $tags;
    438438}
    439439
Note: See TracChangeset for help on using the changeset viewer.