Make WordPress Core

Changeset 10375


Ignore:
Timestamp:
01/18/2009 05:40:40 AM (15 years ago)
Author:
azaozz
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r10357 r10375  
    1717require_once('../wp-load.php');
    1818require_once('includes/admin.php');
     19@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
    1920
    2021if ( ! is_user_logged_in() ) {
  • trunk/wp-admin/press-this.php

    r10374 r10375  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    1112
    1213if ( ! current_user_can('publish_posts') ) wp_die( __( 'Cheatin’ uh?' ) );
Note: See TracChangeset for help on using the changeset viewer.