WordPress.org

Make WordPress Core

Ticket #10022: general-template.patch

File general-template.patch, 983 bytes (added by scribu, 9 years ago)

Adds the name param to get_header(), get_sidebar() & get_footer()

  • home/cristi/svn/wp/wp-includes/general-template.php

     
    2323 * @param string $name The name of the specialised header.
    2424 */
    2525function get_header( $name = null ) {
    26         do_action( 'get_header' );
     26        do_action( 'get_header', $name );
    2727
    2828        $templates = array();
    2929        if ( isset($name) )
     
    5252 * @param string $name The name of the specialised footer.
    5353 */
    5454function get_footer( $name = null ) {
    55         do_action( 'get_footer' );
     55        do_action( 'get_footer', $name );
    5656
    5757        $templates = array();
    5858        if ( isset($name) )
     
    8181 * @param string $name The name of the specialised sidebar.
    8282 */
    8383function get_sidebar( $name = null ) {
    84         do_action( 'get_sidebar' );
     84        do_action( 'get_sidebar', $name );
    8585
    8686        $templates = array();
    8787        if ( isset($name) )