[wp-trac] [WordPress Trac] #44632: Properly enqueue wp-embed
WordPress Trac
noreply at wordpress.org
Tue Jul 24 09:39:55 UTC 2018
#44632: Properly enqueue wp-embed
-------------------------+-----------------------------
Reporter: alpipego | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
The `wp-embed` JS gets enqueued on `wp_head` instead of
`wp_enqueue_scripts` source:trunk/src/wp-includes/default-
filters.php#L532; thus it gets printed in `wp_print_footer_scripts`
although it's not registered that way.
The script should be properly registered with `'in_footer' = true` and
enqueued on `wp_enqueue_scripts`.
I'll be happy to provide the patch, if desired.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44632>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list