Make WordPress Core

Changeset 854


Ignore:
Timestamp:
02/09/2004 12:33:13 PM (21 years ago)
Author:
saxmatt
Message:

Rudimentary post preview functionality.

File:
1 edited

Legend:

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

    r808 r854  
    224224
    225225            include('edit-form-advanced.php');
     226            $p = $_GET['post'];
     227            include(ABSPATH.'wp-blog-header.php');
     228            start_wp();
     229            ?>
     230    <div id='preview' class='wrap'>
     231            <h2>Post Preview</h2>
     232     <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
     233    <div class="meta">Filed under: <?php the_category() ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
     234   
     235    <div class="storycontent">
     236        <?php the_content(); ?>
     237    </div>
     238            </div>
     239<?php
    226240        } else {
    227241?>
Note: See TracChangeset for help on using the changeset viewer.