don't show Publish button when editing a future post. Props tellyworth.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-07-06 21:04:37 +00:00
parent 4ba5f806d7
commit d5842abd35
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ if ( $authors && count( $authors ) > 1 ) :
<?php echo $saveasdraft; ?>
<input type="submit" name="submit" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
<?php
if ('publish' != $post->post_status || 0 == $post_ID) {
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?>
<?php if ( current_user_can('publish_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />