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:
parent
62642cb9fe
commit
44c9c17fe4
|
@ -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 ?>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
Loading…
Reference in New Issue