From fd6f6fe44b5ef7bfafdd5cd00c9b664fcf1ca977 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sun, 18 Jan 2009 05:40:40 +0000 Subject: [PATCH] Add Content-Type header to admin-ajax and press this, props UnderWordPressure, fixes #8795 git-svn-id: http://svn.automattic.com/wordpress/trunk@10375 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 1 + wp-admin/press-this.php | 1 + 2 files changed, 2 insertions(+) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index adb7e4a826..9e146629c3 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -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() ) { diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index c28ead14eb..a668b1beec 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -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?' ) );