Changeset 7120
- Timestamp:
- 03/01/2008 06:26:13 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
edit-form-advanced.php (modified) (1 diff)
-
edit-page-form.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> -
trunk/wp-admin/edit-page-form.php
r7103 r7120 71 71 <select name='post_status'> 72 72 <?php if ( current_user_can('publish_posts') ) : ?> 73 <?php $pub_value = ( 'private' == $post->post_status ) ? 'private' : 'publish'; ?> 74 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='<?php echo $pub_value ?>'><?php _e('Published') ?></option> 73 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> 75 74 <?php else: ?> 76 75 <option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>
Note: See TracChangeset
for help on using the changeset viewer.