Changeset 7120 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 03/01/2008 06:26:13 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-advanced.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r7103 r7120 94 94 <select name='post_status'> 95 95 <?php if ( current_user_can('publish_posts') ) : ?> 96 <?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?> 97 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option> 96 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> 98 97 <?php else: ?> 99 98 <option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>
Note: See TracChangeset
for help on using the changeset viewer.