Make WordPress Core


Ignore:
Timestamp:
01/23/2006 11:39:56 PM (19 years ago)
Author:
ryan
Message:

is_preview() fixes from David House. fixes #2188

File:
1 edited

Legend:

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

    r3472 r3473  
    226226        if ('' != $qv['comments_popup']) {
    227227            $this->is_comments_popup = true;
     228        }
     229       
     230        //if we're previewing inside the write screen
     231        if ('' != $qv['preview']) {
     232            $this->is_preview = true;
    228233        }
    229234
     
    14551460
    14561461class WP {
    1457     var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id');
     1462    var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview');
    14581463
    14591464    var $private_query_vars = array('posts_per_page', 'posts_per_archive_page', 'what_to_show', 'showposts', 'nopaging', 'show_post_type');
Note: See TracChangeset for help on using the changeset viewer.