Make WordPress Core

Changeset 60127


Ignore:
Timestamp:
04/03/2025 07:24:20 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type of the $cache parameter in embed_oembed_html.

The value cannot be false at this point, as the filter is only applied to non-empty output.

Follow-up to [25726], [46661].

Props apermo, xate.
Fixes #63220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-embed.php

    r56177 r60127  
    284284                 * @see WP_Embed::shortcode()
    285285                 *
    286                  * @param string|false $cache   The cached HTML result, stored in post meta.
    287                  * @param string       $url     The attempted embed URL.
    288                  * @param array        $attr    An array of shortcode attributes.
    289                  * @param int          $post_id Post ID.
     286                 * @param string $cache   The cached HTML result, stored in post meta.
     287                 * @param string $url     The attempted embed URL.
     288                 * @param array  $attr    An array of shortcode attributes.
     289                 * @param int    $post_id Post ID.
    290290                 */
    291291                return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_id );
Note: See TracChangeset for help on using the changeset viewer.