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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-03-30 06:54:41 +00:00
parent af57879ad1
commit f70d37fdde
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"))