Make WordPress Core


Ignore:
Timestamp:
09/23/2005 11:24:19 PM (19 years ago)
Author:
ryan
Message:

Add object awareness to WP_Query. Props skeltoac. fixes #1700

File:
1 edited

Legend:

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

    r2892 r2908  
    3030    var $is_comments_popup = false;
    3131    var $is_admin = false;
     32    var $is_object = false;
    3233
    3334    function init_query_flags() {
     
    4950        $this->is_paged = false;
    5051        $this->is_admin = false;
     52        $this->is_object = false;
    5153    }
    5254   
     
    525527                $where .= ')';             
    526528        }
     529
     530        if (! $this->is_object )
     531            $where .= ' AND post_status != "object"';
    527532
    528533        // Apply filters on where and join prior to paging so that any
Note: See TracChangeset for help on using the changeset viewer.