Don't show Publish button for published posts.
git-svn-id: https://develop.svn.wordpress.org/trunk@3101 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7d851aa114
commit
b8f0875533
@ -195,7 +195,7 @@ else
|
||||
|
||||
<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="5" accesskey="p" value="<?php _e('Publish') ?>" />
|
||||
|
Loading…
Reference in New Issue
Block a user