From 4cb88cef6e9030b46ebfdcfa4ac1d554b80ddb03 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 19 Jun 2005 03:07:16 +0000 Subject: [PATCH] Page editing form cleaning and repair. git-svn-id: http://svn.automattic.com/wordpress/trunk@2652 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 3 +++ wp-admin/edit-page-form.php | 4 ++-- wp-admin/page-new.php | 10 +++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 137937ceee..43bc15b133 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -149,6 +149,9 @@ function get_default_post_to_edit() { $post->post_content = apply_filters('default_content', $content); $post->post_title = apply_filters('default_title', $edited_post_title); $post->post_excerpt = apply_filters('default_excerpt', $excerpt); + $post->page_template = 'default'; + $post->post_parent = 0; + $post->menu_order = 0; return $post; } diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index a906f3a70e..87cd25898f 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -115,8 +115,8 @@ edCanvas = document.getElementById('content');