From a929a47c76e14a4ccebf3fd1b464ffb5fb1de9f7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 Apr 2025 21:58:33 +0000 Subject: [PATCH] Docs: Correct the type of the `$name` parameter in `get_template_part` action. The value cannot be `null` at this point, as it is converted to a string a few lines above. Follow-up to [45059], [55870], [60120]. See #63215, #63166. Built from https://develop.svn.wordpress.org/trunk@60121 git-svn-id: http://core.svn.wordpress.org/trunk@59457 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 14 +++++++------- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 907f95ccb6..3a965a2d3d 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -175,8 +175,8 @@ function get_template_part( $slug, $name = null, $args = array() ) { * @since 5.5.0 The `$args` parameter was added. * * @param string $slug The slug name for the generic template. - * @param string|null $name The name of the specialized template or null if - * there is none. + * @param string|null $name The name of the specialized template + * or null if there is none. * @param array $args Additional arguments passed to the template. */ do_action( "get_template_part_{$slug}", $slug, $name, $args ); @@ -195,11 +195,11 @@ function get_template_part( $slug, $name = null, $args = array() ) { * @since 5.2.0 * @since 5.5.0 The `$args` parameter was added. * - * @param string $slug The slug name for the generic template. - * @param string|null $name The name of the specialized template or an empty - * string if there is none. - * @param string[] $templates Array of template files to search for, in order. - * @param array $args Additional arguments passed to the template. + * @param string $slug The slug name for the generic template. + * @param string $name The name of the specialized template + * or an empty string if there is none. + * @param string[] $templates Array of template files to search for, in order. + * @param array $args Additional arguments passed to the template. */ do_action( 'get_template_part', $slug, $name, $templates, $args ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 17553e2f1f..22202ee28c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60120'; +$wp_version = '6.9-alpha-60121'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.