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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user