Docs: Correct the type of the $return parameter in embed_handler_html filter.

The value cannot be `false` at this point, as the filter is only applied to non-empty embed HTML.

Follow-up to [25726], [46661].

Reviewed by SergeyBiryukov, audrasjb.
Merges [60149] to 6.8 branch.
Props apermo, jasonsa19.
Fixes #63248.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb
2025-04-14 14:31:24 +00:00
parent 642e40f50c
commit 57eb7cf99a
2 changed files with 4 additions and 4 deletions

View File

@@ -163,9 +163,9 @@ class WP_Embed {
* *
* @see WP_Embed::shortcode() * @see WP_Embed::shortcode()
* *
* @param string|false $return The HTML result of the shortcode, or false on failure. * @param string $return The HTML result of the shortcode.
* @param string $url The embed URL. * @param string $url The embed URL.
* @param array $attr An array of shortcode attributes. * @param array $attr An array of shortcode attributes.
*/ */
return apply_filters( 'embed_handler_html', $return, $url, $attr ); return apply_filters( 'embed_handler_html', $return, $url, $attr );
} }

View File

@@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.8-RC3-60156'; $wp_version = '6.8-RC3-60157';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.