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:
ryan 2008-04-20 06:48:00 +00:00
parent 8591767741
commit 5ecd57c4de
1 changed files with 1 additions and 1 deletions

View File

@ -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>