Make WordPress Core

Changeset 60140


Ignore:
Timestamp:
04/08/2025 02:10:35 AM (3 weeks ago)
Author:
jorbin
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].

Reviewed By peterwilsoncc, jorbin.
Merges [60127] to the 6.8 branch.

Props apermo, xate, SergeyBiryukov.
Fixes #63220.

Location:
branches/6.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/src/wp-includes/class-wp-embed.php

    r56177 r60140  
    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.