Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#10022 closed defect (bug) (fixed)

Pass $name variable to hooks for get_header(), get_sidebar() & get_footer()

Reported by: scribu Owned by: westi
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.8
Component: Template Keywords: has-patch commit dev-reviewed
Focuses: Cc:


WP 2.8 added the $name parameter to the get_header(), get_sidebar() & get_footer() template tags, so the hooks should also send this parameter.

Attachments (1)

general-template.patch (983 bytes) - added by scribu 12 years ago.
Adds the name param to get_header(), get_sidebar() & get_footer()

Download all attachments as: .zip

Change History (4)

12 years ago

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

#1 @westi
12 years ago

  • Keywords dev-reviewed added
  • Owner set to westi
  • Status changed from new to accepted

+1 makes perfect sense

#2 @jorbin
12 years ago

  • Component changed from General to Template

Tested and works. Thanks.

#3 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [11521]) Pass name to sidebar, footer, and header get actions. Props scribu. fixes #10022

Note: See TracTickets for help on using tickets.