[wp-trac] [WordPress Trac] #49360: Scripts: Add polyfill for window.URL
WordPress Trac
noreply at wordpress.org
Tue Mar 3 15:48:01 UTC 2020
#49360: Scripts: Add polyfill for window.URL
---------------------------+-------------------------
Reporter: aduth | Owner: aduth
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.4
Component: Script Loader | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
---------------------------+-------------------------
Comment (by jorgefilipecosta):
I tested this patch
https://core.trac.wordpress.org/attachment/ticket/49360/49360-core-js-
url.diff.
Before the patch on IE11:
window.wp.url.isURL('test');-> false
window.wp.url.isURL('http://test.com');-> false
After the patch on IE11:
window.wp.url.isURL('test');-> false
window.wp.url.isURL('http://test.com');-> true
It seems the patch fixes the problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49360#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list