WordPress.org

Make WordPress Core

Changeset 8862


Ignore:
Timestamp:
09/11/08 06:04:51 (7 years ago)
Author:
ryan
Message:

Privacy Options for pages. see #7552

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r8859 r8862  
    333333?> 
    334334<p> 
    335     <label for="post_status_private2" class="selectit"><input id="post_status_private2" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label> 
     335    <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 post private') ?></label> 
    336336</p> 
    337337<h4><?php _e( 'Post Password' ); ?></h4> 
  • trunk/wp-admin/edit-page-form.php

    r8850 r8862  
    7878</select> 
    7979</p> 
    80 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 
    81 <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> 
    82 <?php endif; ?> 
    8380 
    8481<?php 
     
    180177function page_password_meta_box($post){ 
    181178?> 
     179<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> 
     180<h4><?php _e( 'Page Password' ); ?></h4> 
    182181<p><label class="hidden" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo ( isset( $post->post_password ) ? attribute_escape( $post->post_password ) : '' ); ?>" /></p> 
    183182<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p> 
    184183<?php 
    185184} 
    186 add_meta_box('pagepassworddiv', __('Password Protect This Page'), 'page_password_meta_box', 'page', 'normal', 'core'); 
     185add_meta_box('pagepassworddiv', __('Privacy Options'), 'page_password_meta_box', 'page', 'normal', 'core'); 
    187186 
    188187function page_slug_meta_box($post){ 
Note: See TracChangeset for help on using the changeset viewer.