[wp-trac] [WordPress Trac] #18331: get_sidebar(), get_header(), etc. should be refreshed
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 4 20:39:34 UTC 2011
#18331: get_sidebar(), get_header(), etc. should be refreshed
--------------------------+------------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.2.1
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Old description:
> 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
New description:
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/xYjASLYe
--
Comment (by SergeyBiryukov):
Corrected the link.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18331#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list