mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Check publish_pages capability, not publish_posts. Props matthijs. fixes #6777 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8591767741
commit
5ecd57c4de
@ -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…
Reference in New Issue
Block a user