From a0bcd7d56a6c9b84b3f2eb625fad3ceab7cfb29d Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 16 May 2023 05:25:23 +0000 Subject: [PATCH] Docs: Clarify `@param` types on `get_sample_permalink_html` filter. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `$new_title` and `$new_slug` can be null if `get_sample_permalink_html()` was called with default parameters, and they are documented as `string|null` in the function DocBlock. Follow-up to [34347]. Props Enchiridion, audrasjb, SergeyBiryukov. Fixes #58322. See #33927. --Cette ligne, et les suivantes ci-dessous, seront ignorées-- M trunk/src/wp-admin/includes/post.php Built from https://develop.svn.wordpress.org/trunk@55758 git-svn-id: http://core.svn.wordpress.org/trunk@55270 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 6782f19500..f11771ec8e 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1555,11 +1555,11 @@ function get_sample_permalink_html( $post, $new_title = null, $new_slug = null ) * @since 2.9.0 * @since 4.4.0 Added `$post` parameter. * - * @param string $return Sample permalink HTML markup. - * @param int $post_id Post ID. - * @param string $new_title New sample permalink title. - * @param string $new_slug New sample permalink slug. - * @param WP_Post $post Post object. + * @param string $return Sample permalink HTML markup. + * @param int $post_id Post ID. + * @param string|null $new_title New sample permalink title. + * @param string|null $new_slug New sample permalink slug. + * @param WP_Post $post Post object. */ $return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 09f31b34a9..b2afee4f19 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55757'; +$wp_version = '6.3-alpha-55758'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.