diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2025-04-03 19:24:20 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2025-04-03 19:24:20 +0000 |
commit | 2e63863dbef4af5cfe1b3b3b9a0d4e1fa9d0dfec (patch) | |
tree | 231b865b9043219ad3201edeed8e2b32dbd6e695 | |
parent | a9370e959e1333f655b46495569a0288e23c6000 (diff) | |
download | wordpress-2e63863dbef4af5cfe1b3b3b9a0d4e1fa9d0dfec.tar.gz wordpress-2e63863dbef4af5cfe1b3b3b9a0d4e1fa9d0dfec.zip |
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
-rw-r--r-- | src/wp-includes/class-wp-embed.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wp-includes/class-wp-embed.php b/src/wp-includes/class-wp-embed.php index 6b9eaa25db..b6b219673e 100644 --- a/src/wp-includes/class-wp-embed.php +++ b/src/wp-includes/class-wp-embed.php @@ -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 ); } |