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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-03-31 06:17:14 +00:00
parent 991e250e3a
commit c23b50d0da
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