mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Don't show publish button when post is already published. Props: Mark Jaquith fixes #1813
git-svn-id: http://svn.automattic.com/wordpress/trunk@2981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a79cdd3a92
commit
ffb20f3fd4
@ -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" />
|
<p class="submit"><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
|
||||||
<?php
|
<?php
|
||||||
if ('publish' != $post_status || 0 == $post_ID) {
|
if ( 'publish' != $post->post_status || 0 == $post_ID ) {
|
||||||
?>
|
?>
|
||||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||||
<input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php _e('Publish') ?>" />
|
<input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php _e('Publish') ?>" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user