Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

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