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:
parent
3dde29bde0
commit
757a8a8396
|
@ -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…
Reference in New Issue