Docs: Remove inaccurate parts of get_header
, get_footer
, and get_sidebar
hooks documentation.
These sentences suggested that the hooks allow a specific template file to be used in place of the default file, which is not the case. Props desrosj. Fixes #40892. git-svn-id: https://develop.svn.wordpress.org/trunk@40955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ab52911d8
commit
4b7514b83d
@ -23,10 +23,6 @@ function get_header( $name = null ) {
|
||||
/**
|
||||
* Fires before the header template file is loaded.
|
||||
*
|
||||
* The hook allows a specific header template file to be used in place of the
|
||||
* default header template file. If your file is called header-new.php,
|
||||
* you would specify the filename in the hook as get_header( 'new' ).
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @since 2.8.0 $name parameter added.
|
||||
*
|
||||
@ -62,10 +58,6 @@ function get_footer( $name = null ) {
|
||||
/**
|
||||
* Fires before the footer template file is loaded.
|
||||
*
|
||||
* The hook allows a specific footer template file to be used in place of the
|
||||
* default footer template file. If your file is called footer-new.php,
|
||||
* you would specify the filename in the hook as get_footer( 'new' ).
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @since 2.8.0 $name parameter added.
|
||||
*
|
||||
@ -101,10 +93,6 @@ function get_sidebar( $name = null ) {
|
||||
/**
|
||||
* Fires before the sidebar template file is loaded.
|
||||
*
|
||||
* The hook allows a specific sidebar template file to be used in place of the
|
||||
* default sidebar template file. If your file is called sidebar-new.php,
|
||||
* you would specify the filename in the hook as get_sidebar( 'new' ).
|
||||
*
|
||||
* @since 2.2.0
|
||||
* @since 2.8.0 $name parameter added.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user