Skip to content

Commit 2e63863

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60127 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a9370e9 commit 2e63863

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/class-wp-embed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ public function shortcode( $attr, $url = '' ) {
283283
*
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 );
292292
}

0 commit comments

Comments
 (0)