[wp-trac] [WordPress Trac] #19063: Custom post_types and get_template_part
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 27 14:48:52 UTC 2011
#19063: Custom post_types and get_template_part
-------------------------+------------------------------
Reporter: impleri | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version:
Severity: minor | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by scribu):
I was able to apply new.2.diff and noticed that it doesn't account for
when:
- {{{get_query_var('post_type')}}} returns false (default)
- {{{get_query_var('post_type')}}} returns an array of post types
Also, I don't think get_template_part() is the right place for adding
this. It should remain a generic function, similar to locate_template().
PS: Please leave a comment when you upload a new patch, as they don't
trigger a notification.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19063#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list