From 9a6867aa449c4fd928c5e6051661b4d232f665aa Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 23 Jan 2006 23:39:56 +0000 Subject: [PATCH] is_preview() fixes from David House. fixes #2188 git-svn-id: http://svn.automattic.com/wordpress/trunk@3473 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 2 +- wp-includes/classes.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index a5b18f054..026a45350 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -80,7 +80,7 @@ case 'edit': ?>

- +
is_comments_popup = true; } + + //if we're previewing inside the write screen + if ('' != $qv['preview']) { + $this->is_preview = true; + } if (strstr($_SERVER['PHP_SELF'], 'wp-admin/')) { $this->is_admin = true; @@ -1454,7 +1459,7 @@ class WP_Rewrite { } class WP { - 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'); + 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'); var $private_query_vars = array('posts_per_page', 'posts_per_archive_page', 'what_to_show', 'showposts', 'nopaging', 'show_post_type');