[wp-trac] [WordPress Trac] #30288: set import directory for get_template_part()
WordPress Trac
noreply at wordpress.org
Tue Nov 11 16:13:22 UTC 2014
#30288: set import directory for get_template_part()
-----------------------------+-----------------------
Reporter: Billy Mathews | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone:
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
-----------------------------+-----------------------
Comment (by Billy Mathews):
Also I suppose some other functions may have to inherit this functionality
- such as `get_search_form()` and even `get_header()` and `get_footer()`
I guess this is a different thing but shouldn't `get_search_form()` allow
you to pass a `$name` as you can with `get_header()`? And shouldn't they
both (and any others) allow you to pass `'folder/filename'` as you can
with `get_template_part()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30288#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list