From 57eb7cf99a9b52c96ff736424690efa2023e26bb Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 14 Apr 2025 14:31:24 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-embed.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-embed.php b/wp-includes/class-wp-embed.php index b6b219673e..7519b0bf77 100644 --- a/wp-includes/class-wp-embed.php +++ b/wp-includes/class-wp-embed.php @@ -163,9 +163,9 @@ class WP_Embed { * * @see WP_Embed::shortcode() * - * @param string|false $return The HTML result of the shortcode, or false on failure. - * @param string $url The embed URL. - * @param array $attr An array of shortcode attributes. + * @param string $return The HTML result of the shortcode. + * @param string $url The embed URL. + * @param array $attr An array of shortcode attributes. */ return apply_filters( 'embed_handler_html', $return, $url, $attr ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index a052398ad1..c1ee7bb09d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.