From d42b1a8256e6abf19b3e2a8c025b4ec2a33bc0ab Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 2 Feb 2008 19:22:14 +0000 Subject: [PATCH] Don't hard code post type in edit forms. Props filosofo and DD32. fixes #4991 git-svn-id: http://svn.automattic.com/wordpress/trunk@6712 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 4 +--- wp-admin/edit-page-form.php | 5 ++--- wp-admin/includes/post.php | 7 +++++++ wp-admin/page-new.php | 3 +-- wp-includes/default-filters.php | 6 ++++++ 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 69c8e8266a..75a1d80d72 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -46,15 +46,13 @@ if ('' != $post->pinged) { $saveasdraft = ''; -if (empty($post->post_status)) $post->post_status = 'draft'; - ?> - + post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?> diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 2945efb7a3..0da6f54d7a 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -27,15 +27,14 @@ if ( 0 != $post_ID && $sendto == get_permalink($post_ID) ) '; -} ?> - +