WordPress.org

Make WordPress Core

Ticket #5677: 6619.diff

File 6619.diff, 805 bytes (added by fitztrev, 8 years ago)
  • edit-form-advanced.php

     
    9797<p> 
    9898<select name='post_status'> 
    9999<?php if ( current_user_can('publish_posts') ) : ?> 
    100 <?php ( 'private' == $post-post_status ) ? $pub_value = 'private' : $pub_value = 'publish'; ?> 
     100<?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?> 
    101101<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'future' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option> 
    102102<?php else: ?> 
    103103<option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>