From 88de856e5760db19692c1d3c0760477737c0f849 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 29 Aug 2016 20:41:42 +0000 Subject: [PATCH] Themes: Correct the type for the `$name` parameter of the `get_header`, `get_footer`, `get_sidebar`, and `get_template_part_{$slug}` hooks. See #37770 git-svn-id: https://develop.svn.wordpress.org/trunk@38434 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 20f958753c..3bd18bb1d5 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -30,7 +30,7 @@ function get_header( $name = null ) { * @since 2.1.0 * @since 2.8.0 $name parameter added. * - * @param string $name Name of the specific header file to use. + * @param string|null $name Name of the specific header file to use. null for the default header. */ do_action( 'get_header', $name ); @@ -69,7 +69,7 @@ function get_footer( $name = null ) { * @since 2.1.0 * @since 2.8.0 $name parameter added. * - * @param string $name Name of the specific footer file to use. + * @param string|null $name Name of the specific footer file to use. null for the default footer. */ do_action( 'get_footer', $name ); @@ -108,7 +108,7 @@ function get_sidebar( $name = null ) { * @since 2.2.0 * @since 2.8.0 $name parameter added. * - * @param string $name Name of the specific sidebar file to use. + * @param string|null $name Name of the specific sidebar file to use. null for the default sidebar. */ do_action( 'get_sidebar', $name ); @@ -152,8 +152,8 @@ function get_template_part( $slug, $name = null ) { * * @since 3.0.0 * - * @param string $slug The slug name for the generic template. - * @param string $name The name of the specialized template. + * @param string $slug The slug name for the generic template. + * @param string|null $name The name of the specialized template. */ do_action( "get_template_part_{$slug}", $slug, $name );