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:
parent
991e250e3a
commit
c23b50d0da
|
@ -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" />
|
<p><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="Save" style="font-weight: bold;" tabindex="6" />
|
||||||
<?php
|
<?php
|
||||||
if ('publish' != $post_status) {
|
if ('publish' != $post_status || 0 == $post_ID) {
|
||||||
?>
|
?>
|
||||||
<input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
|
<input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue