Make WordPress Core


Ignore:
Timestamp:
08/15/2007 10:08:51 PM (17 years ago)
Author:
ryan
Message:

Category union and intersection query vars. fixes #4750

File:
1 edited

Legend:

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

    r5708 r5873  
    44    var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots');
    55
    6     var $private_query_vars = array('offset', 'posts_per_page', 'posts_per_archive_page', 'what_to_show', 'showposts', 'nopaging', 'post_type', 'post_status');
     6    var $private_query_vars = array('offset', 'posts_per_page', 'posts_per_archive_page', 'what_to_show', 'showposts', 'nopaging', 'post_type', 'post_status', 'category__in', 'category__not_in', 'category__and');
    77    var $extra_query_vars = array();
    88
     
    1616    function add_query_var($qv) {
    1717        $this->public_query_vars[] = $qv;
     18    }
     19
     20    function set_query_var($key, $value) {
     21        $this->query_vars[$key] = $value;
    1822    }
    1923
Note: See TracChangeset for help on using the changeset viewer.