WordPress.org

Plugin Directory

Changeset 608016


Ignore:
Timestamp:
10/04/12 20:27:35 (19 months ago)
Author:
donncha
Message:

Check for $wp_cache_disable_utf8 when serving supercache files from PHP, like it affects mod_rewrite served files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache-phase1.php

    r573734 r608016  
    120120    global $key, $blogcacheid, $wp_cache_request_uri, $file_prefix, $blog_cache_dir, $meta_file, $cache_file, $cache_filename, $wp_super_cache_debug, $meta_pathname, $wp_cache_gzip_encoding, $meta; 
    121121    global $wp_cache_object_cache, $cache_compression, $wp_cache_slash_check, $wp_supercache_304, $wp_cache_home_path, $wp_cache_no_cache_for_get; 
     122    global $wp_cache_disable_utf8; 
    122123 
    123124    extract( wp_super_cache_init() ); 
     
    184185            ( wp_cache_get_cookies_values() == '' && empty( $_GET ) && $serving_supercache ) ) 
    185186        { 
    186             header( "Content-type: text/html; charset=UTF-8" ); // UTF-8 hard coded is bad but we don't know what it is this early in the process 
     187            if ( isset( $wp_cache_disable_utf8 ) == false || $wp_cache_disable_utf8 == 0 ) 
     188                header( "Content-type: text/html; charset=UTF-8" );  
    187189            header( "Vary: Accept-Encoding, Cookie" ); 
    188190            header( "Cache-Control: max-age=3, must-revalidate" ); 
Note: See TracChangeset for help on using the changeset viewer.