mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-12 06:43:20 +01:00
Pass name to sidebar, footer, and header get actions. Props scribu. fixes #10022
git-svn-id: http://svn.automattic.com/wordpress/trunk@11521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75a3b36310
commit
d026ea7673
@ -23,7 +23,7 @@
|
||||
* @param string $name The name of the specialised header.
|
||||
*/
|
||||
function get_header( $name = null ) {
|
||||
do_action( 'get_header' );
|
||||
do_action( 'get_header', $name );
|
||||
|
||||
$templates = array();
|
||||
if ( isset($name) )
|
||||
@ -52,7 +52,7 @@ function get_header( $name = null ) {
|
||||
* @param string $name The name of the specialised footer.
|
||||
*/
|
||||
function get_footer( $name = null ) {
|
||||
do_action( 'get_footer' );
|
||||
do_action( 'get_footer', $name );
|
||||
|
||||
$templates = array();
|
||||
if ( isset($name) )
|
||||
@ -81,7 +81,7 @@ function get_footer( $name = null ) {
|
||||
* @param string $name The name of the specialised sidebar.
|
||||
*/
|
||||
function get_sidebar( $name = null ) {
|
||||
do_action( 'get_sidebar' );
|
||||
do_action( 'get_sidebar', $name );
|
||||
|
||||
$templates = array();
|
||||
if ( isset($name) )
|
||||
|
Loading…
Reference in New Issue
Block a user