Changeset 3473
- Timestamp:
- 01/23/2006 11:39:56 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r3428 r3473 81 81 <div id='preview' class='wrap'> 82 82 <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit ↑'); ?></a></small></h2> 83 <iframe src="<?php the_permalink(); ?>" width="100%" height="600" ></iframe>83 <iframe src="<?php echo add_query_arg('preview', 'true', get_permalink($post->ID)); ?>" width="100%" height="600" ></iframe> 84 84 </div> 85 85 <?php -
trunk/wp-includes/classes.php
r3472 r3473 226 226 if ('' != $qv['comments_popup']) { 227 227 $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; 228 233 } 229 234 … … 1455 1460 1456 1461 class 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'); 1458 1463 1459 1464 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.