mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
Themes: Correct the type for the $name
parameter of the get_header
, get_footer
, get_sidebar
, and get_template_part_{$slug}
hooks.
See #37770 Built from https://develop.svn.wordpress.org/trunk@38434 git-svn-id: http://core.svn.wordpress.org/trunk@38375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0569c6219e
commit
27770f200c
@ -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 );
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38433';
|
||||
$wp_version = '4.7-alpha-38434';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user