Fix typo and clean up ternary logic. Props fitzrev. fixes #5677

git-svn-id: https://develop.svn.wordpress.org/trunk@6625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-01-16 09:18:15 +00:00
parent d310fc1367
commit efdb111a66
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ addLoadEvent(focusit);
<p> <p>
<select name='post_status'> <select name='post_status'>
<?php if ( current_user_can('publish_posts') ) : ?> <?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> <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option>
<?php else: ?> <?php else: ?>
<option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option> <option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>