Make WordPress Core

Changeset 57785


Ignore:
Timestamp:
03/06/2024 05:04:00 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add a description for the $wp_embed global.

Follow-up to [57748].

See #60699.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r57755 r57785  
    275275 * @since 3.1.0
    276276 *
    277  * @global WP_Embed $wp_embed
     277 * @global WP_Embed $wp_embed WordPress Embed object.
    278278 */
    279279function wp_ajax_oembed_cache() {
     
    33823382 *
    33833383 * @global WP_Post  $post     Global post object.
    3384  * @global WP_Embed $wp_embed
     3384 * @global WP_Embed $wp_embed WordPress Embed object.
    33853385 */
    33863386function wp_ajax_send_link_to_editor() {
     
    37343734 * @since 4.0.0
    37353735 *
    3736  * @global WP_Post    $post       Global post object.
    3737  * @global WP_Embed   $wp_embed   Embed API instance.
     3736 * @global WP_Post    $post          Global post object.
     3737 * @global WP_Embed   $wp_embed      WordPress Embed object.
    37383738 * @global WP_Scripts $wp_scripts
    37393739 * @global int        $content_width
  • trunk/src/wp-includes/block-template.php

    r57019 r57785  
    211211 * @global string   $_wp_current_template_id
    212212 * @global string   $_wp_current_template_content
    213  * @global WP_Embed $wp_embed
    214  * @global WP_Query $wp_query
     213 * @global WP_Embed $wp_embed                     WordPress Embed object.
     214 * @global WP_Query $wp_query                     WordPress Query object.
    215215 *
    216216 * @return string Block template markup.
  • trunk/src/wp-includes/class-wp-oembed-controller.php

    r54831 r57785  
    161161     *
    162162     * @see WP_oEmbed::get_html()
    163      * @global WP_Embed   $wp_embed
     163     * @global WP_Embed   $wp_embed   WordPress Embed object.
    164164     * @global WP_Scripts $wp_scripts
    165165     *
  • trunk/src/wp-includes/embed.php

    r57648 r57785  
    1515 * @since 2.9.0
    1616 *
    17  * @global WP_Embed $wp_embed
     17 * @global WP_Embed $wp_embed WordPress Embed object.
    1818 *
    1919 * @param string   $id       An internal ID/name for the handler. Needs to be unique.
     
    3333 * @since 2.9.0
    3434 *
    35  * @global WP_Embed $wp_embed
     35 * @global WP_Embed $wp_embed WordPress Embed object.
    3636 *
    3737 * @param string $id       The handler ID that should be removed.
     
    231231 * @since 4.0.0
    232232 *
    233  * @global WP_Embed $wp_embed
     233 * @global WP_Embed $wp_embed WordPress Embed object.
    234234 *
    235235 * @param array  $matches The RegEx matches from the provided regex when calling
Note: See TracChangeset for help on using the changeset viewer.