Ticket #25466: vars.diff
File vars.diff, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-includes/vars.php
52 52 $is_lynx = true; 53 53 } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== false ) { 54 54 if ( stripos( $_SERVER['HTTP_USER_AGENT'], 'chromeframe' ) !== false ) { 55 if ( $is_chrome = apply_filters( 'use_google_chrome_frame', is_admin() ) ) 55 $is_admin = is_admin(); 56 /** 57 * Filter whether to use google chrome frame. 58 * 59 * @since 3.2.1 60 * 61 * @param bool $is_admin If the Dashboard or the administration panel is attempting to be displayed. 62 */ 63 if ( $is_chrome = apply_filters( 'use_google_chrome_frame', $is_admin ) ) 56 64 header( 'X-UA-Compatible: chrome=1' ); 57 65 $is_winIE = ! $is_chrome; 58 66 } else {