Check publish_pages capability, not publish_posts. Props matthijs. fixes #6777 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7750 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c54046696b
commit
75c46d544c
@ -72,7 +72,7 @@ else
|
||||
<p><strong><?php _e('Publish Status') ?></strong></p>
|
||||
<p>
|
||||
<select name='post_status' tabindex='4'>
|
||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||
<?php if ( current_user_can('publish_pages') ) : ?>
|
||||
<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
|
||||
<?php else: ?>
|
||||
<option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>
|
||||
|
Loading…
x
Reference in New Issue
Block a user