mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
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:
parent
3c491e4dbc
commit
5160634407
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user