Changeset 61119 for trunk/src/wp-includes/embed.php
- Timestamp:
- 11/04/2025 12:45:02 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/embed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r60948 r61119 333 333 * @since 4.4.0 334 334 * @since 6.8.0 Output was adjusted to only embed if the post supports it. 335 * @since 6.9.0 Now runs first at `wp_head` priority 4, with a fallback to priority 10. This helps ensure the discovery links appear within the first 150KB. 335 336 */ 336 337 function wp_oembed_add_discovery_links() { 338 if ( doing_action( 'wp_head' ) ) { 339 // For back-compat, short-circuit if a plugin has removed the action at the original priority. 340 if ( ! has_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 ) ) { 341 return; 342 } 343 344 // Prevent running again at the original priority. 345 remove_action( 'wp_head', 'wp_oembed_add_discovery_links' ); 346 } 347 337 348 $output = ''; 338 349
Note: See TracChangeset
for help on using the changeset viewer.