From 5ef10c1dbac7b91508c503ce515aa6c6a9f5f494 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 4 Jun 2009 17:59:14 +0000 Subject: [PATCH] Pass name to sidebar, footer, and header get actions. Props scribu. fixes #10022 git-svn-id: https://develop.svn.wordpress.org/trunk@11521 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index b84f8bb287..b1dc9a9b11 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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) )