Privacy Options for pages. see #7552
git-svn-id: http://svn.automattic.com/wordpress/trunk@8862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6044ee63fa
commit
581ac55f04
|
@ -332,7 +332,7 @@ add_meta_box('commentstatusdiv', __('Comments on this Post'), 'post_comment_stat
|
|||
function post_password_meta_box($post) {
|
||||
?>
|
||||
<p>
|
||||
<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>
|
||||
<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>
|
||||
</p>
|
||||
<h4><?php _e( 'Post Password' ); ?></h4>
|
||||
<p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
|
||||
|
|
|
@ -77,9 +77,6 @@ if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND
|
|||
<option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Unpublished') ?></option>
|
||||
</select>
|
||||
</p>
|
||||
<?php if ( current_user_can( 'publish_posts' ) ) : ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( 0 != $post->ID ) {
|
||||
|
@ -179,11 +176,13 @@ add_meta_box('pagecommentstatusdiv', __('Comments & Pings'), 'page_comments_
|
|||
|
||||
function page_password_meta_box($post){
|
||||
?>
|
||||
<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>
|
||||
<h4><?php _e( 'Page Password' ); ?></h4>
|
||||
<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>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
add_meta_box('pagepassworddiv', __('Password Protect This Page'), 'page_password_meta_box', 'page', 'normal', 'core');
|
||||
add_meta_box('pagepassworddiv', __('Privacy Options'), 'page_password_meta_box', 'page', 'normal', 'core');
|
||||
|
||||
function page_slug_meta_box($post){
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue