mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
Default privacy box to the side
git-svn-id: https://develop.svn.wordpress.org/trunk@9449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4bde9be67c
commit
4c5ee79368
@ -201,6 +201,23 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->
|
||||
}
|
||||
add_meta_box('pagesubmitdiv', __('Publish'), 'page_submit_meta_box', 'page', 'side', 'core');
|
||||
|
||||
/**
|
||||
* Display page password form fields.
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @param object $post
|
||||
*/
|
||||
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 the_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', __('Privacy Options'), 'page_password_meta_box', 'page', 'side', 'core');
|
||||
|
||||
/**
|
||||
* Display custom field for page form fields.
|
||||
*
|
||||
@ -247,23 +264,6 @@ function page_comments_status_meta_box($post){
|
||||
}
|
||||
add_meta_box('pagecommentstatusdiv', __('Comments & Pings'), 'page_comments_status_meta_box', 'page', 'normal', 'core');
|
||||
|
||||
/**
|
||||
* Display page password form fields.
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @param object $post
|
||||
*/
|
||||
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 the_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', __('Privacy Options'), 'page_password_meta_box', 'page', 'normal', 'core');
|
||||
|
||||
/**
|
||||
* Display page slug form fields.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user