Make WordPress Core


Ignore:
Timestamp:
02/27/2007 03:24:54 PM (18 years ago)
Author:
markjaquith
Message:

trailing tabs and whitespace cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r4940 r4953  
    201201    global $wp_query;
    202202
    203     return $wp_query->is_singular; 
     203    return $wp_query->is_singular;
    204204}
    205205
     
    286286    var $in_the_loop = false;
    287287    var $post;
    288    
     288
    289289    var $comments;
    290290    var $comment_count = 0;
     
    361361        $this->parse_query('');
    362362    }
    363    
     363
    364364    function fill_query_vars($array) {
    365365        $keys = array(
     
    396396                $array[$key] = '';
    397397        }
    398        
     398
    399399        return $array;
    400400    }
     
    411411            $this->query_vars = $qv;
    412412        }
    413        
     413
    414414        $qv = $this->fill_query_vars($qv);
    415        
     415
    416416        if ( ! empty($qv['robots']) ) {
    417417            $this->is_robots = true;
     
    610610        // Shorthand.
    611611        $q = &$this->query_vars;
    612        
     612
    613613        $q = $this->fill_query_vars($q);
    614614
     
    10021002            }
    10031003        }
    1004        
     1004
    10051005        // Comments feeds
    10061006        if ( $this->is_comment_feed && ( $this->is_archive || $this->is_search || !$this->is_singular ) ) {
     
    10141014                $cgroupby = '';
    10151015            }
    1016            
     1016
    10171017            $cjoin = apply_filters('comment_feed_join', $cjoin);
    10181018            $cwhere = apply_filters('comment_feed_where', $cwhere);
    10191019            $cgroupby = apply_filters('comment_feed_groupby', $cgroupby);
    1020            
     1020
    10211021            $this->comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby ORDER BY comment_date_gmt DESC LIMIT " . get_settings('posts_per_rss'));
    10221022            $this->comment_count = count($this->comments);
    10231023
    10241024            $post_ids = array();
    1025            
     1025
    10261026            foreach ($this->comments as $comment)
    10271027                $post_ids[] = (int) $comment->comment_post_ID;
    1028            
     1028
    10291029            $post_ids = join(',', $post_ids);
    10301030            $join = '';
     
    10621062            $this->comment_count = count($this->comments);
    10631063        }
    1064        
     1064
    10651065        if ( !empty($limits) ) {
    10661066            $found_posts_query = apply_filters( 'found_posts_query', 'SELECT FOUND_ROWS()' );
     
    10691069            $this->max_num_pages = ceil($this->found_posts / $q['posts_per_page']);
    10701070        }
    1071        
     1071
    10721072        // Check post status to determine if post should be displayed.
    10731073        if ( !empty($this->posts) && ($this->is_single || $this->is_page) ) {
     
    11491149        }
    11501150    }
    1151    
     1151
    11521152    function next_comment() {
    11531153        $this->current_comment++;
    1154        
     1154
    11551155        $this->comment = $this->comments[$this->current_comment];
    11561156        return $this->comment;
    11571157    }
    1158    
     1158
    11591159    function the_comment() {
    11601160        global $comment;
    1161        
     1161
    11621162        $comment = $this->next_comment();
    1163        
     1163
    11641164        if ($this->current_comment == 0) {
    11651165            do_action('comment_loop_start');
    11661166        }
    11671167    }
    1168    
     1168
    11691169    function have_comments() {
    11701170        if ($this->current_comment + 1 < $this->comment_count) {
     
    11731173            $this->rewind_comments();
    11741174        }
    1175        
     1175
    11761176        return false;
    11771177    }
    1178    
     1178
    11791179    function rewind_comments() {
    11801180        $this->current_comment = -1;
Note: See TracChangeset for help on using the changeset viewer.