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) {
|
switch($action) {
|
||||||
case 'post':
|
case 'post':
|
||||||
require_once('admin-header.php');
|
|
||||||
|
|
||||||
if (!user_can_create_draft($user_ID)) {
|
if (!user_can_create_draft($user_ID)) {
|
||||||
die('You are not allowed to create posts or drafts on this blog.');
|
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);
|
add_post_meta($post_ID, '_wp_page_template', $_POST['page_template'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require_once('admin-header.php');
|
||||||
|
|
||||||
exit();
|
exit();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user