Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:56:05 AM (20 years ago)
Author:
ryan
Message:

Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

File:
1 edited

Legend:

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

    r4488 r4495  
    44 * The Big Query.
    55 */
    6  
     6
    77function get_query_var($var) {
    88        global $wp_query;
     
    225225 * The Loop.  Post loop control.
    226226 */
    227  
     227
    228228function have_posts() {
    229229        global $wp_query;
     
    417417                        $this->is_single = true;
    418418                } elseif (('' != $qv['hour']) && ('' != $qv['minute']) &&('' != $qv['second']) && ('' != $qv['year']) && ('' != $qv['monthnum']) && ('' != $qv['day'])) {
    419                         // If year, month, day, hour, minute, and second are set, a single 
    420                         // post is being queried.       
     419                        // If year, month, day, hour, minute, and second are set, a single
     420                        // post is being queried.
    421421                        $this->is_single = true;
    422422                } elseif ('' != $qv['static'] || '' != $qv['pagename'] || (int) $qv['page_id']) {
     
    494494                                $this->is_category = true;
    495495                        }
    496            
     496
    497497                        if ((empty($qv['author'])) || ($qv['author'] == '0')) {
    498498                                $this->is_author = false;
     
    772772                // Category stuff
    773773
    774                 if ((empty($q['cat'])) || ($q['cat'] == '0') || 
     774                if ((empty($q['cat'])) || ($q['cat'] == '0') ||
    775775                                // Bypass cat checks if fetching specific posts
    776776                                ( $this->is_single || $this->is_page )) {
     
    789789                                        $in_cats .= "$cat, " . get_category_children($cat, '', ', ');
    790790                                else
    791                                         $out_cats .= "$cat, " . get_category_children($cat, '', ', ');                         
     791                                        $out_cats .= "$cat, " . get_category_children($cat, '', ', ');
    792792                        }
    793793                        $in_cats = substr($in_cats, 0, -2);
     
    832832
    833833                        $q['cat'] = $reqcat;
    834                                
     834
    835835                        $tables = ", $wpdb->post2cat, $wpdb->categories";
    836836                        $join = " LEFT JOIN $wpdb->post2cat ON ($wpdb->posts.ID = $wpdb->post2cat.post_id) LEFT JOIN $wpdb->categories ON ($wpdb->post2cat.category_id = $wpdb->categories.cat_ID) ";
     
    923923                        if ( is_admin() )
    924924                                $where .= " OR post_status = 'future' OR post_status = 'draft'";
    925        
     925
    926926                        if ( is_user_logged_in() ) {
    927927                                if ( 'post' == $post_type )
     
    10251025
    10261026        function next_post() {
    1027        
     1027
    10281028                $this->current_post++;
    10291029
     
    10611061                }
    10621062        }
    1063    
     1063
    10641064        function &query($query) {
    10651065                $this->parse_query($query);
Note: See TracChangeset for help on using the changeset viewer.