[wp-trac] [WordPress Trac] #44632: Properly enqueue wp-embed

WordPress Trac noreply at wordpress.org
Thu Dec 16 23:36:12 UTC 2021


#44632: Properly enqueue wp-embed
-------------------------------------+-------------------------------------
 Reporter:  alpipego                 |       Owner:  westonruter
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  5.9
Component:  Embeds                   |     Version:  4.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-unit-      |     Focuses:  javascript,
  tests                              |  performance
-------------------------------------+-------------------------------------

Comment (by westonruter):

 Replying to [comment:47 westonruter]:
 > If we want to maintain back-compat for allowing authors to disable the
 oEmbed host JS via:
 >
 > {{{#!php
 > <?php
 > remove_action( 'wp_head', 'wp_oembed_add_host_js' )
 > }}}
 >
 > Then I think what we need to do is something like this:
 https://github.com/WordPress/wordpress-develop/pull/2059

 There are 75 plugins doing so:
 https://wpdirectory.net/search/01FQ2SK19WA6MBS3JWZ7B59EBM

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


More information about the wp-trac mailing list