WordPress/wp-includes
audrasjb 90100ff883 Embeds: Fix oEmbed host script enqueueing on block-based themes.
This change fixes oEmbed host script enqueueing on front-end when using block themes.

It deprecates `wp_oembed_add_host_js` in favor of `wp_maybe_enqueue_oembed_host_js`. The action is still triggered in `default-filters.php` to ensure backward compatibility for websites that are removing the action. There is now a `has_action()` check in `wp_maybe_enqueue_oembed_host_js()` to see if `wp_oembed_add_host_js()` has not been unhooked from running at the `wp_head` action.

Follow-up to [52132], [52151], [52153], [52325].

Props swissspidy, westonruter, flixos90, kafleg.
Fixes #44632.

Built from https://develop.svn.wordpress.org/trunk@52437


git-svn-id: http://core.svn.wordpress.org/trunk@52029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-04 15:23:59 +00:00
..
2022-01-04 05:39:28 +00:00
2022-01-04 05:39:28 +00:00
2022-01-04 05:39:28 +00:00
2022-01-04 05:39:28 +00:00
2022-01-04 05:39:28 +00:00
2022-01-04 05:39:28 +00:00
2021-12-14 01:57:26 +00:00
2021-12-06 21:30:03 +00:00