5 | 5 | * [https://github.com/xwp/wordpress-develop/commit/0e873bdcab65bd84e7af0b294e5c4433cd708ed0 0e873b] : Customize: Remove Customizer support for IE8. [https://github.com/xwp/wordpress-develop/compare/trac-38021?expand=1#diff-c3492b4a8b647a363b5d0de02d8a39c8R2155 wp_customize_support_script()] adds a class to `<body>`, to indicate Customizer support. And it has a [https://github.com/xwp/wordpress-develop/compare/trac-38021?expand=1#diff-c3492b4a8b647a363b5d0de02d8a39c8R2172 conditional] to control which class to add. So add `Array.prototype.indexOf` to this [https://github.com/xwp/wordpress-develop/compare/trac-38021?expand=1#diff-c3492b4a8b647a363b5d0de02d8a39c8R2172 conditional]. As [https://core.trac.wordpress.org/ticket/30781#trac-change-12-1419099917614426 Weston found] in #30781, this is undefined in IE8. The [https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#compat-desktop Mozilla documentation] shows that it is supported IE9. The conditional will be false in IE8, and `<body>` will have a class of no-customize-support. |