added a check to see if the post exists, it it doesn't show the edit button

git-svn-id: https://develop.svn.wordpress.org/trunk@1038 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Alex King 2004-03-31 06:17:14 +00:00
parent 3c491e4dbc
commit 5160634407
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ if($metadata = has_meta($post_ID)) {
<p><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="Save" style="font-weight: bold;" tabindex="6" />
<?php
if ('publish' != $post_status) {
if ('publish' != $post_status || 0 == $post_ID) {
?>
<input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
<?php