From 71974680037664579939c1d2839f6ca1b3436171 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 4 Jul 2014 16:17:15 +0000 Subject: [PATCH] Add is_customize_preview(), a conditional function to check if the site is being previewed in the Customizer. props sammybeats, mattwiebe. fixes #23509. Built from https://develop.svn.wordpress.org/trunk@28999 git-svn-id: http://core.svn.wordpress.org/trunk@28787 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 40acf6b5a3..9bab1fd624 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1938,3 +1938,16 @@ function wp_customize_support_script() { is_preview(); +}