WordPress.org

Make WordPress Core

Opened 15 months ago

Last modified 15 months ago

#44632 new enhancement

Properly enqueue wp-embed

Reported by: alpipego Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Embeds Keywords:
Focuses: Cc:
PR Number:

Description

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.

Change History (1)

#1 @swissspidy
15 months ago

I can't remember off the top of my head why we added it this way in the feature plugin...

If we change this behavior we have to make sure it doesn't break anything.

Note: See TracTickets for help on using tickets.