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
This commit is contained in:
Sergey Biryukov 2024-03-06 05:05:12 +00:00
parent 134d366e8b
commit 4d6941a48b
5 changed files with 11 additions and 11 deletions

View File

@ -274,7 +274,7 @@ function wp_ajax_imgedit_preview() {
* *
* @since 3.1.0 * @since 3.1.0
* *
* @global WP_Embed $wp_embed * @global WP_Embed $wp_embed WordPress Embed object.
*/ */
function wp_ajax_oembed_cache() { function wp_ajax_oembed_cache() {
$GLOBALS['wp_embed']->cache_oembed( $_GET['post'] ); $GLOBALS['wp_embed']->cache_oembed( $_GET['post'] );
@ -3381,7 +3381,7 @@ function wp_ajax_send_attachment_to_editor() {
* @since 3.5.0 * @since 3.5.0
* *
* @global WP_Post $post Global post object. * @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() { function wp_ajax_send_link_to_editor() {
global $post, $wp_embed; global $post, $wp_embed;
@ -3733,8 +3733,8 @@ function wp_ajax_query_themes() {
* *
* @since 4.0.0 * @since 4.0.0
* *
* @global WP_Post $post Global post object. * @global WP_Post $post Global post object.
* @global WP_Embed $wp_embed Embed API instance. * @global WP_Embed $wp_embed WordPress Embed object.
* @global WP_Scripts $wp_scripts * @global WP_Scripts $wp_scripts
* @global int $content_width * @global int $content_width
*/ */

View File

@ -210,8 +210,8 @@ function _block_template_render_title_tag() {
* *
* @global string $_wp_current_template_id * @global string $_wp_current_template_id
* @global string $_wp_current_template_content * @global string $_wp_current_template_content
* @global WP_Embed $wp_embed * @global WP_Embed $wp_embed WordPress Embed object.
* @global WP_Query $wp_query * @global WP_Query $wp_query WordPress Query object.
* *
* @return string Block template markup. * @return string Block template markup.
*/ */

View File

@ -160,7 +160,7 @@ final class WP_oEmbed_Controller {
* @since 4.8.0 * @since 4.8.0
* *
* @see WP_oEmbed::get_html() * @see WP_oEmbed::get_html()
* @global WP_Embed $wp_embed * @global WP_Embed $wp_embed WordPress Embed object.
* @global WP_Scripts $wp_scripts * @global WP_Scripts $wp_scripts
* *
* @param WP_REST_Request $request Full data about the request. * @param WP_REST_Request $request Full data about the request.

View File

@ -14,7 +14,7 @@
* *
* @since 2.9.0 * @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 $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. * @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 * @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 string $id The handler ID that should be removed.
* @param int $priority Optional. The priority of the handler to be removed. Default 10. * @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 * @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 * @param array $matches The RegEx matches from the provided regex when calling
* wp_embed_register_handler(). * wp_embed_register_handler().

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.