Fix header error when saving drafts.

git-svn-id: https://develop.svn.wordpress.org/trunk@1822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell 2004-10-20 21:27:40 +00:00
parent a2e4222fc0
commit b1338c154c
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;