don't show publish button on posts that are already published, task 153

git-svn-id: https://develop.svn.wordpress.org/trunk@1033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Alex King 2004-03-30 06:54:41 +00:00
parent 1ec97a4ad4
commit a5a8f26c81
1 changed files with 11 additions and 8 deletions

View File

@ -159,16 +159,19 @@ if($metadata = has_meta($post_ID)) {
<p><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="Save" style="font-weight: bold;" tabindex="6" />
<input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
<?php
if ('publish' != $post_status) {
?>
<input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
<?php
}
?>
<input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
</p>
<?php
if ('' != $pinged) {
echo $pings;
}
?>
<?php
if ('' != $pinged) {
echo $pings;
}
// if the level is 5+, allow user to edit the timestamp - not on 'new post' screen though
// if (($user_level > 4) && ($action != "post"))