summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-04-02 21:56:31 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-04-02 21:56:31 +0000
commit6fe810db927368df6e363a36dfcfa502dca2c011 (patch)
tree0e636212be39403d43219593eaad2bf3094f3afc /src
parent7474af7ae7826ff7f9da044d61cf9e92d259b50a (diff)
downloadwordpress-6fe810db927368df6e363a36dfcfa502dca2c011.tar.gz
wordpress-6fe810db927368df6e363a36dfcfa502dca2c011.zip
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60121 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src')
-rw-r--r--src/wp-includes/general-template.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index 907f95ccb6..3a965a2d3d 100644
--- a/src/wp-includes/general-template.php
+++ b/src/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 );