From 1ab8ced9d72d486c8fb0f2f9ea81ab870bf950b9 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 7 Oct 2013 15:29:14 +0000 Subject: [PATCH] Inline documentation for hooks in wp-includes/vars.php. Props tmtoy, nacin. Fixes #25466. git-svn-id: https://develop.svn.wordpress.org/trunk@25712 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/vars.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wp-includes/vars.php b/src/wp-includes/vars.php index 1eac8081de..a5ce9ca29f 100644 --- a/src/wp-includes/vars.php +++ b/src/wp-includes/vars.php @@ -52,6 +52,13 @@ 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 ) { + /** + * Filter whether Google Chrome Frame should be used, if available. + * + * @since 3.2.0 + * + * @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() ) ) header( 'X-UA-Compatible: chrome=1' ); $is_winIE = ! $is_chrome;