[wp-trac] [WordPress Trac] #18331: get_sidebar(), get_header(), etc. should make use of get_template_part()
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 4 20:36:39 UTC 2011
#18331: get_sidebar(), get_header(), etc. should make use of get_template_part()
--------------------------+-----------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.2.1
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18331>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list