From 4c4271a691bf1d812a5058759e147892314b9520 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Tue, 20 Sep 2016 04:02:31 +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. Built from https://develop.svn.wordpress.org/trunk@38627 git-svn-id: http://core.svn.wordpress.org/trunk@38570 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 0ffb22db04..8592ee50cf 100644 --- a/wp-includes/theme.php +++ b/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; }());