Don't show publish button when post is already published. Props: Mark Jaquith fixes #1813

git-svn-id: https://develop.svn.wordpress.org/trunk@2981 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-04 02:51:59 +00:00
parent 0d3b4317dc
commit efe9f2fbcf
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ edCanvas = document.getElementById('content');
<p class="submit"><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
<?php
if ('publish' != $post_status || 0 == $post_ID) {
if ( 'publish' != $post->post_status || 0 == $post_ID ) {
?>
<?php if ( current_user_can('publish_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php _e('Publish') ?>" />