Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#18331 closed enhancement

get_sidebar(), get_header(), etc. should make use of get_template_part() — at Initial Version

Reported by: Viper007Bond Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2.1
Component: Template Keywords: has-patch commit
Focuses: Cc:


We should consolidate code and make get_sidebar() and it's compatriots use get_template_part().

While we're at it, these functions should support a subfolder argument so that sidebars can be stored in a "sidebar" folder for example.

AaronCampbell came up with this elegantly simple code on IRC: http://pastebin.com/xYjASLYea

Change History (0)

Note: See TracTickets for help on using tickets.