Changeset 7409 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 03/20/2008 04:19:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r7400 r7409 85 85 <p> 86 86 <select name='post_status'> 87 <?php if ( current_user_can('publish_posts') ) : ?>87 <?php if ( current_user_can('publish_posts') ) : // Contributors only get "Unpublished" and "Pending Review" ?> 88 88 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> 89 <?php else: ?>90 <option<?php selected( $post->post_status, 'private' ); ?> value='private'><?php _e('Published') ?></option>91 <?php endif; ?>92 89 <?php if ( 'future' == $post->post_status ) : ?> 93 <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Pending') ?></option> 90 <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Scheduled') ?></option> 91 <?php endif; ?> 94 92 <?php endif; ?> 95 93 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option> … … 98 96 </p> 99 97 98 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 100 99 <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'); ?> /> <?php _e('Keep this post private') ?></label></p> 100 <?php endif; ?> 101 101 <?php 102 102 if ($post_ID) { … … 118 118 } 119 119 ?> 120 <?php if ( current_user_can( 'publish_posts' ) ) : // Contributors don't get to choose the date of publish ?> 120 121 <p class="curtime"><?php printf($stamp, $date, $time); ?> 121 122 <a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p> 122 123 123 124 <div id='timestampdiv'><?php touch_time(($action == 'edit')); ?></div> 125 <?php endif; ?> 124 126 125 127 </div>
Note: See TracChangeset
for help on using the changeset viewer.