From 68571f0e050b379fc2d07aa8856121d17e818170 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 19 Jun 2005 03:07:16 +0000 Subject: [PATCH] Page editing form cleaning and repair. git-svn-id: https://develop.svn.wordpress.org/trunk@2652 602fd350-edb4-49c9-b593-d223f7449a82 --- 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');