Make WordPress Core

Changeset 18036


Ignore:
Timestamp:
05/25/2011 04:15:00 PM (13 years ago)
Author:
ryan
Message:

Support Chrome Frame. fixes #14537

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r16905 r18036  
    4848        $is_lynx = true;
    4949    } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== false ) {
    50         $is_chrome = true;
     50        if ( stripos( $_SERVER['HTTP_USER_AGENT'], 'chromeframe' ) !== false ) {
     51            if ( $is_chrome = apply_filters( 'use_google_chrome_frame', is_admin() ) )
     52                header( 'X-UA-Compatible: chrome=1' );
     53            $is_winIE = ! $is_chrome;
     54        } else {
     55            $is_chrome = true;
     56        }
    5157    } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false ) {
    5258        $is_safari = true;
Note: See TracChangeset for help on using the changeset viewer.