Make WordPress Core


Ignore:
Timestamp:
02/05/2008 06:47:27 AM (15 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

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

    r6704 r6726  
    3838
    3939function is_admin () {
    40     if ( defined('WP_ADMIN') ) 
     40    if ( defined('WP_ADMIN') )
    4141        return WP_ADMIN;
    4242    return false;
     
    144144 * @return bool True if front of site
    145145 */
    146 function is_front () { 
    147     // most likely case 
    148     if ( 'posts' == get_option('show_on_front') && is_home() ) 
    149         return true; 
    150     elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') && is_page(get_option('page_on_front')) ) 
    151         return true; 
    152     else 
    153         return false; 
    154 } 
     146function is_front () {
     147    // most likely case
     148    if ( 'posts' == get_option('show_on_front') && is_home() )
     149        return true;
     150    elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') && is_page(get_option('page_on_front')) )
     151        return true;
     152    else
     153        return false;
     154}
    155155
    156156/**
     
    186186
    187187    $page = (array) $page;
    188    
     188
    189189    if ( in_array( $page_obj->ID, $page ) )
    190190        return true;
     
    978978        if ( !empty($q['category__not_in']) ) {
    979979            $ids = get_objects_in_term($q['category__not_in'], 'category');
    980             if ( is_wp_error( $ids ) ) 
     980            if ( is_wp_error( $ids ) )
    981981                return $ids;
    982982            if ( is_array($ids) && count($ids > 0) ) {
     
    11661166                    $q['orderby'] .= (($i == 0) ? '' : ',') . $orderby;
    11671167            }
    1168             /* append ASC or DESC at the end */ 
     1168            /* append ASC or DESC at the end */
    11691169            if ( !empty($q['orderby'])){
    11701170                $q['orderby'] .= " {$q['order']}";
    11711171            }
    1172            
     1172
    11731173            if ( empty($q['orderby']) )
    11741174                $q['orderby'] = 'post_date '.$q['order'];
Note: See TracChangeset for help on using the changeset viewer.