Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/load-scripts.php

    r17630 r14442  
    8686 * @ignore
    8787 */
    88 function includes_url() {}
    89 
    90 /**
    91  * @ignore
    92  */
    9388function wp_guess_url() {}
    9489
     
    135130if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) {
    136131    header('Vary: Accept-Encoding'); // Handle proxies
    137     if ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {
     132    if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {
    138133        header('Content-Encoding: deflate');
    139134        $out = gzdeflate( $out, 3 );
    140     } elseif ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) {
     135    } elseif ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && function_exists('gzencode') ) {
    141136        header('Content-Encoding: gzip');
    142137        $out = gzencode( $out, 3 );
Note: See TracChangeset for help on using the changeset viewer.