Rudimentary post preview functionality.
git-svn-id: http://svn.automattic.com/wordpress/trunk@854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0284b7ba09
commit
b7466b97f6
|
@ -223,6 +223,20 @@ switch($action) {
|
||||||
$pinged = $postdata['pinged'];
|
$pinged = $postdata['pinged'];
|
||||||
|
|
||||||
include('edit-form-advanced.php');
|
include('edit-form-advanced.php');
|
||||||
|
$p = $_GET['post'];
|
||||||
|
include(ABSPATH.'wp-blog-header.php');
|
||||||
|
start_wp();
|
||||||
|
?>
|
||||||
|
<div id='preview' class='wrap'>
|
||||||
|
<h2>Post Preview</h2>
|
||||||
|
<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>
|
||||||
|
<div class="meta">Filed under: <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||||
|
|
||||||
|
<div class="storycontent">
|
||||||
|
<?php the_content(); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<p>Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1,
|
<p>Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1,
|
||||||
|
|
Loading…
Reference in New Issue