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.

Built from https://develop.svn.wordpress.org/branches/6.8@60140


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin
2025-04-08 02:12:22 +00:00
parent 05afd5d2d4
commit 554d3b073c
2 changed files with 5 additions and 5 deletions

View File

@@ -283,10 +283,10 @@ class WP_Embed {
*
* @see WP_Embed::shortcode()
*
* @param string|false $cache The cached HTML result, stored in post meta.
* @param string $url The attempted embed URL.
* @param array $attr An array of shortcode attributes.
* @param int $post_id Post ID.
* @param string $cache The cached HTML result, stored in post meta.
* @param string $url The attempted embed URL.
* @param array $attr An array of shortcode attributes.
* @param int $post_id Post ID.
*/
return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_id );
}