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
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user