From 554d3b073cd8bf6ffc5c839bfe1feb3dcfd0a944 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 8 Apr 2025 02:12:22 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-embed.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-embed.php b/wp-includes/class-wp-embed.php index 6b9eaa25db..b6b219673e 100644 --- a/wp-includes/class-wp-embed.php +++ b/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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9fbd3c4bef..7fd6686b8a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-RC2-60139'; +$wp_version = '6.8-RC2-60140'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.