From 3521b2f30f83b4d751347e3b3638b6d1ea804526 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Tue, 20 Sep 2016 04:01:58 +0000 Subject: [PATCH] Customize: Remove IE8 access to customizer to discontinue support. Uses feature detection for `Array.prototype.indexOf` since it is not implemented in IE8. Props ryankienstra. See #38021. git-svn-id: https://develop.svn.wordpress.org/trunk@38627 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 0ffb22db04..8592ee50cf 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -2169,7 +2169,7 @@ function wp_customize_support_script() { b[c] = b[c].replace( rcs, ' ' ); - b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs; + b[c] += ( window.postMessage && request && Array.prototype.indexOf ? ' ' : ' no-' ) + cs; }());