From b654f9c0e3cfcaf8094118d0d2a23f0d9324430e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 7 Oct 2013 17:55:45 +0000 Subject: [PATCH] Add missing variable for inline hook documentation changes in wp-includes/vars.php. See #25466. git-svn-id: https://develop.svn.wordpress.org/trunk@25718 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/vars.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/vars.php b/src/wp-includes/vars.php index a5ce9ca29f..fbf83a0486 100644 --- a/src/wp-includes/vars.php +++ b/src/wp-includes/vars.php @@ -52,6 +52,7 @@ if ( isset($_SERVER['HTTP_USER_AGENT']) ) { $is_lynx = true; } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== false ) { if ( stripos( $_SERVER['HTTP_USER_AGENT'], 'chromeframe' ) !== false ) { + $is_admin = is_admin(); /** * Filter whether Google Chrome Frame should be used, if available. * @@ -59,7 +60,7 @@ if ( isset($_SERVER['HTTP_USER_AGENT']) ) { * * @param bool $is_admin Whether to use the Google Chrome Frame. Default is the value of is_admin(). */ - if ( $is_chrome = apply_filters( 'use_google_chrome_frame', is_admin() ) ) + if ( $is_chrome = apply_filters( 'use_google_chrome_frame', $is_admin ) ) header( 'X-UA-Compatible: chrome=1' ); $is_winIE = ! $is_chrome; } else {