From 4d6941a48b230e0a40409f5732ab3dac1facb052 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 Mar 2024 05:05:12 +0000 Subject: [PATCH] Docs: Add a description for the `$wp_embed` global. Follow-up to [57748]. See #60699. Built from https://develop.svn.wordpress.org/trunk@57785 git-svn-id: http://core.svn.wordpress.org/trunk@57286 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ajax-actions.php | 8 ++++---- wp-includes/block-template.php | 4 ++-- wp-includes/class-wp-oembed-controller.php | 2 +- wp-includes/embed.php | 6 +++--- wp-includes/version.php | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index 30aab700b4..06b6e90e55 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -274,7 +274,7 @@ function wp_ajax_imgedit_preview() { * * @since 3.1.0 * - * @global WP_Embed $wp_embed + * @global WP_Embed $wp_embed WordPress Embed object. */ function wp_ajax_oembed_cache() { $GLOBALS['wp_embed']->cache_oembed( $_GET['post'] ); @@ -3381,7 +3381,7 @@ function wp_ajax_send_attachment_to_editor() { * @since 3.5.0 * * @global WP_Post $post Global post object. - * @global WP_Embed $wp_embed + * @global WP_Embed $wp_embed WordPress Embed object. */ function wp_ajax_send_link_to_editor() { global $post, $wp_embed; @@ -3733,8 +3733,8 @@ function wp_ajax_query_themes() { * * @since 4.0.0 * - * @global WP_Post $post Global post object. - * @global WP_Embed $wp_embed Embed API instance. + * @global WP_Post $post Global post object. + * @global WP_Embed $wp_embed WordPress Embed object. * @global WP_Scripts $wp_scripts * @global int $content_width */ diff --git a/wp-includes/block-template.php b/wp-includes/block-template.php index 7030e2e2a1..0a4d85ac71 100644 --- a/wp-includes/block-template.php +++ b/wp-includes/block-template.php @@ -210,8 +210,8 @@ function _block_template_render_title_tag() { * * @global string $_wp_current_template_id * @global string $_wp_current_template_content - * @global WP_Embed $wp_embed - * @global WP_Query $wp_query + * @global WP_Embed $wp_embed WordPress Embed object. + * @global WP_Query $wp_query WordPress Query object. * * @return string Block template markup. */ diff --git a/wp-includes/class-wp-oembed-controller.php b/wp-includes/class-wp-oembed-controller.php index a36fff987d..d78a76d885 100644 --- a/wp-includes/class-wp-oembed-controller.php +++ b/wp-includes/class-wp-oembed-controller.php @@ -160,7 +160,7 @@ final class WP_oEmbed_Controller { * @since 4.8.0 * * @see WP_oEmbed::get_html() - * @global WP_Embed $wp_embed + * @global WP_Embed $wp_embed WordPress Embed object. * @global WP_Scripts $wp_scripts * * @param WP_REST_Request $request Full data about the request. diff --git a/wp-includes/embed.php b/wp-includes/embed.php index 82cb45d314..0958a2b0c3 100644 --- a/wp-includes/embed.php +++ b/wp-includes/embed.php @@ -14,7 +14,7 @@ * * @since 2.9.0 * - * @global WP_Embed $wp_embed + * @global WP_Embed $wp_embed WordPress Embed object. * * @param string $id An internal ID/name for the handler. Needs to be unique. * @param string $regex The regex that will be used to see if this handler should be used for a URL. @@ -32,7 +32,7 @@ function wp_embed_register_handler( $id, $regex, $callback, $priority = 10 ) { * * @since 2.9.0 * - * @global WP_Embed $wp_embed + * @global WP_Embed $wp_embed WordPress Embed object. * * @param string $id The handler ID that should be removed. * @param int $priority Optional. The priority of the handler to be removed. Default 10. @@ -230,7 +230,7 @@ function wp_maybe_load_embeds() { * * @since 4.0.0 * - * @global WP_Embed $wp_embed + * @global WP_Embed $wp_embed WordPress Embed object. * * @param array $matches The RegEx matches from the provided regex when calling * wp_embed_register_handler(). diff --git a/wp-includes/version.php b/wp-includes/version.php index c029df9915..07af091d2a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57784'; +$wp_version = '6.6-alpha-57785'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.