[wp-trac] [WordPress Trac] #18375: Post type templates

WordPress Trac noreply at wordpress.org
Tue Sep 20 20:34:47 UTC 2016


#18375: Post type templates
--------------------------------------+-----------------------
 Reporter:  johnbillion               |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  4.7
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  template
--------------------------------------+-----------------------

Comment (by Mte90):

 Well the new code is amazing :-D

   Should the 'page_templates' cache group change to 'post_templates' or
 should there be both? If it should change, the docs inside WP_Theme need
 to reflect that.

 As I can see in the code the only reference for that value is inside
 WP_Theme so maybe it's better to check if there are plugins that use that
 value.

   Add new params or new is_post_type_template() /
 get_post_type_templates() functions? It's totally confusing when there's
 get_page_templates() and get_page_template()

 I think to maintain the old for compatibility and new one to use the new
 functions and to avoid confusions.

   Should the 'post' post type have the page-attributes support by default?

 I don't think probably there are not many website that will use this
 feature so enable mandatory is not the best way. And also only the people
 that know that feature will use it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18375#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list