From 757a8a83965515387002d2c645c7eaf460d15daa Mon Sep 17 00:00:00 2001 From: emc3 Date: Wed, 20 Oct 2004 21:27:40 +0000 Subject: [PATCH] Fix header error when saving drafts. git-svn-id: http://svn.automattic.com/wordpress/trunk@1822 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index bd229f06fa..9e96c81a52 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -20,7 +20,6 @@ if (!isset($$wpvar)) { switch($action) { case 'post': - require_once('admin-header.php'); if (!user_can_create_draft($user_ID)) { die('You are not allowed to create posts or drafts on this blog.'); @@ -159,6 +158,8 @@ case 'post': add_post_meta($post_ID, '_wp_page_template', $_POST['page_template'], true); } + require_once('admin-header.php'); + exit(); break;