[wp-trac] [WordPress Trac] #58974: Modernize wp-embed script to remove IE≤11 code and support for WP<4.4

WordPress Trac noreply at wordpress.org
Thu Aug 10 19:47:23 UTC 2023


#58974: Modernize wp-embed script to remove IE≤11 code and support for WP<4.4
--------------------------------------+--------------------------
 Reporter:  westonruter               |       Owner:  westonruter
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.4
Component:  Embeds                    |     Version:  4.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  javascript
--------------------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56383" 56383]:
 {{{
 #!CommitTicketReference repository="" revision="56383"
 Embeds: Modernize wp-embed script with removal of obsolete IE10/IE11 code
 and support for WP<4.4.

 * Remove obsolete `load` event handler in `wp-embed` since IE10+ support
 `DOMContentLoaded`.
 * Replace obsolete use of `document.createElement('a')` in favor of the
 newer `URL` class (supported in all browsers but obsolete IE11).
 * Remove obsolete IE10/IE11 code.
 * Combine conditionals.
 * Use `substring()` instead of deprecated `substr()` method.
 * Eliminate the stipulation that `wp-embed.js` not include ampersands,
 considering this was put in place for WP<4.3 which now accounts for only
 1.43% of sites. This includes the elimination of the `verify:wp-embed`
 grunt task.

 Props westonruter, swissspidy.
 Fixes #58974.
 }}}

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


More information about the wp-trac mailing list