Default privacy box to the side
git-svn-id: http://svn.automattic.com/wordpress/trunk@9449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4a2fb422f3
commit
bb51d1ccdc
|
@ -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');
|
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.
|
* 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');
|
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.
|
* Display page slug form fields.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue