WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38021, comment 6


Ignore:
Timestamp:
09/18/2016 08:37:45 PM (3 years ago)
Author:
ryankienstra
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38021, comment 6

    initial v1  
    11**Pull Request And Patch With Commit
    22
    3 This [https://github.com/xwp/wordpress-develop/pull/156 GitHub pull request] and [https://patch-diff.githubusercontent.com/raw/xwp/wordpress-develop/pull/156.diff patch] have a commit for this ticket:
     3This [https://github.com/xwp/wordpress-develop/pull/156 GitHub pull request] and identical [https://patch-diff.githubusercontent.com/raw/xwp/wordpress-develop/pull/156.diff patch] have a commit for this ticket:
    44
    55* [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.