[wp-trac] [WordPress Trac] #38021: Customize: remove support for IE8

WordPress Trac noreply at wordpress.org
Sun Sep 18 17:38:50 UTC 2016


#38021: Customize: remove support for IE8
----------------------------------------+------------------
 Reporter:  celloexpressions            |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  4.7
Component:  Customize                   |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+------------------

Comment (by ryankienstra):

 **Pull Request And Patch With Commit

 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:

 * [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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38021#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list