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:
parent
a2e4222fc0
commit
b1338c154c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user