Make WordPress Core

Ticket #1700: 1700.diff

File 1700.diff, 811 bytes (added by skeltoac, 21 years ago)

classes.php diff

  • classes.php

     
    2929        var $is_404 = false;
    3030        var $is_comments_popup = false;
    3131        var $is_admin = false;
     32        var $is_object = false;
    3233
    3334        function init_query_flags() {
    3435                $this->is_single = false;
    … …  
    4849                $this->is_404 = false;
    4950                $this->is_paged = false;
    5051                $this->is_admin = false;
     52                $this->is_object = false;
    5153        }
    5254       
    5355        function init () {
    … …  
    525527                                $where .= ')';                         
    526528                }
    527529
     530                if (! $this->is_object )
     531                        $where .= ' AND post_status != "object"';
     532
    528533                // Apply filters on where and join prior to paging so that any
    529534                // manipulations to them are reflected in the paging by day queries.
    530535                $where = apply_filters('posts_where', $where);