Changeset 8600 for trunk/wp-admin/edit-page-form.php
- Timestamp:
- 08/09/2008 05:36:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-page-form.php
r8589 r8600 91 91 <?php // Show publish in dropdown if user can publish or if they can re-publish this page ('edit_published_pages') 92 92 // 'publish' option will be selected for published AND private posts (checkbox overrides dropdown) 93 if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) : 93 if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) : 94 94 ?> 95 95 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> … … 102 102 </select> 103 103 </p> 104 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 104 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 105 105 <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> 106 106 <?php endif; ?> … … 210 210 211 211 212 <?php 212 <?php 213 213 function page_custom_meta_box($post){ 214 214 ?> … … 239 239 <p><label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label></p> 240 240 <p><?php _e('These settings apply to this page only. “Pings” are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p> 241 <?php 241 <?php 242 242 } 243 243 add_meta_box('pagecommentstatusdiv', __('Comments & Pings'), 'page_comments_status_meta_box', 'page', 'advanced', 'core');
Note: See TracChangeset
for help on using the changeset viewer.