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

WordPress Trac noreply at wordpress.org
Mon Oct 24 09:26:12 UTC 2016


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

Comment (by Mte90):

 I am agree with this improvement but for:

 Replying to [comment:47 ocean90]:

 > * Using `theme_page_templates` for all post types could be a back-compat
 issue. Maybe `theme_page_templates` should only be used for the post type
 `page` and a new one, `theme_post_templates`, for other post types.

 Maybe to improve term consistency it's better `theme_post_type_templates`
 where  `theme_page_templates` is a wrapper for that. In that way post type
 templates support all the post types. In many languages the term `post` is
 used to say post type but also a post as article so specify can improve
 the meaning for developers.

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


More information about the wp-trac mailing list