Fix private post toggle
git-svn-id: https://develop.svn.wordpress.org/trunk@7120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
abe2afd508
commit
9a7997c931
@ -93,8 +93,7 @@ addLoadEvent(focusit);
|
||||
<p>
|
||||
<select name='post_status'>
|
||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||
<?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?>
|
||||
<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
@ -70,8 +70,7 @@ addLoadEvent(focusit);
|
||||
<p>
|
||||
<select name='post_status'>
|
||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||
<?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?>
|
||||
<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
Loading…
Reference in New Issue
Block a user