mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@40955 git-svn-id: http://core.svn.wordpress.org/trunk@40805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
62947553c5
commit
d08982bdbc
@ -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.
|
||||
*
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-40954';
|
||||
$wp_version = '4.9-alpha-40955';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user