Make WordPress Core

Ticket #25466: vars.diff

File vars.diff, 1.0 KB (added by tmtoy, 10 years ago)

Patch wp-includes/vars.php

  • src/wp-includes/vars.php

     
    5252                $is_lynx = true;
    5353        } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== false ) {
    5454                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 ) )
    5664                                header( 'X-UA-Compatible: chrome=1' );
    5765                        $is_winIE = ! $is_chrome;
    5866                } else {