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
This commit is contained in:
parent
142fefb269
commit
88de856e57
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user