Fix typo and clean up ternary logic. Props fitzrev. fixes #5677
git-svn-id: http://svn.automattic.com/wordpress/trunk@6625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
51e4044a0b
commit
7c51664827
|
@ -97,7 +97,7 @@ addLoadEvent(focusit);
|
|||
<p>
|
||||
<select name='post_status'>
|
||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||
<?php ( 'private' == $post-post_status ) ? $pub_value = 'private' : $pub_value = 'publish'; ?>
|
||||
<?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>
|
||||
<?php else: ?>
|
||||
<option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>
|
||||
|
|
Loading…
Reference in New Issue