Add Content-Type header to admin-ajax and press this, props UnderWordPressure, fixes #8795

git-svn-id: https://develop.svn.wordpress.org/trunk@10375 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-01-18 05:40:40 +00:00
parent aae58c3556
commit 13865daa5a
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ define('WP_ADMIN', true);
require_once('../wp-load.php');
require_once('includes/admin.php');
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
if ( ! is_user_logged_in() ) {

View File

@ -8,6 +8,7 @@
/** WordPress Administration Bootstrap */
require_once('admin.php');
header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if ( ! current_user_can('publish_posts') ) wp_die( __( 'Cheatin’ uh?' ) );