diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index ff9aa90b32..ed51fba268 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -218,6 +218,57 @@ function page_password_meta_box($post){ } add_meta_box('pagepassworddiv', __('Privacy Options'), 'page_password_meta_box', 'page', 'side', 'core'); +/** + * Display page parent form fields. + * + * @since 2.6.0 + * + * @param object $post + */ +function page_parent_meta_box($post){ +?> + + $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'))); ?> +

+ + +

+ +

+

+ - - $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'))); ?> -

- - -

- -

-

-id ); // TODO: ROLE SYSTEM if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author;