Fix header error when saving drafts.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2004-10-20 21:27:40 +00:00
parent 3dde29bde0
commit 757a8a8396
1 changed files with 2 additions and 1 deletions

View File

@ -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;