Don't show 'Go Back' link for drafts

git-svn-id: http://svn.automattic.com/wordpress/trunk@7439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-03-21 03:35:27 +00:00
parent 62642cb9fe
commit 44c9c17fe4
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ else if ( url_to_postid(wp_get_referer()) == $post_ID && strpos( wp_get_referer(
else
echo clean_url(stripslashes(wp_get_referer()));
?>" />
<?php wp_original_referer_field(true, 'previous'); ?>
<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
<?php echo $form_extra ?>

View File

@ -50,7 +50,7 @@ if ( url_to_postid(wp_get_referer()) == $post_ID && strpos( wp_get_referer(), '/
else
echo clean_url(stripslashes(wp_get_referer()));
?>" />
<?php wp_original_referer_field(true, 'previous'); ?>
<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
<div id="poststuff">