Opened 4 years ago

Closed 4 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
Priority: normal Milestone: 2.8
Component: Template Version: 2.8
Severity: normal Keywords: has-patch commit dev-reviewed
Cc:

Description

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 4 years ago.
Adds the name param to get_header(), get_sidebar() & get_footer()

Download all attachments as: .zip

Change History (4)

scribu4 years ago

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

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

+1 makes perfect sense

  • Component changed from General to Template

Tested and works. Thanks.

comment:3   ryan4 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.