Ticket #3574: tinymce-charset.diff

File tinymce-charset.diff, 1.2 kB (added by ruckus, 2 years ago)

Patch against 2.0.7-RC1

  • 2.0.7-RC1/wp-includes/js/tinymce/tiny_mce_gzip.php

    old new  
    5959        gzip_compression(); 
    6060 
    6161        // Output rest of headers 
    62         header("Content-type: text/javascript; charset: UTF-8"); 
     62        header("Content-Type: text/javascript; charset=".get_bloginfo('charset')); 
    6363        header("Vary: Accept-Encoding"); // Handle proxies 
    6464        header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT"); 
    6565 
  • 2.0.7-RC1/wp-includes/js/tinymce/wp-mce-help.php

    old new  
    11<?php 
    22 
    33require_once('../../../wp-config.php'); 
     4header('Content-Type: text/html; charset='.get_bloginfo('charset')); 
    45 
    56?> 
    67<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">