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:
Ryan Boren 2008-04-20 06:48:00 +00:00
parent c54046696b
commit 75c46d544c
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>