WordPress.org

Make WordPress Core

Changeset 3473


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

is_preview() fixes from David House. fixes #2188

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r3428 r3473  
    8181    <div id='preview' class='wrap'>
    8282    <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></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>
    8484    </div>
    8585    <?php
  • 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.