Changeset 8034 for trunk/wp-admin/edit-page-form.php
- Timestamp:
- 06/03/2008 06:44:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-page-form.php
r8011 r8034 79 79 80 80 <div class="inside"> 81 82 81 <p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p> 83 82 <p> 84 83 <select name='post_status' tabindex='4' id='post_status'> 85 <?php if ( current_user_can('publish_pages') ) : ?> 84 <?php // Show publish in dropdown if user can publish or if they can re-publish this page ('edit_published_pages') 85 // 'publish' option will be selected for published AND private posts (checkbox overrides dropdown) 86 if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) : 87 ?> 86 88 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> 87 <?php else: ?>88 <option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>89 89 <?php endif; ?> 90 90 <?php if ( 'future' == $post->post_status ) : ?> … … 95 95 </select> 96 96 </p> 97 97 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 98 98 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p> 99 <?php endif; ?> 100 99 101 <?php 100 102 if ($post_ID) {
Note: See TracChangeset
for help on using the changeset viewer.