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

WordPress Trac noreply at wordpress.org
Fri Sep 23 10:13:04 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 swissspidy):

 I'll try to update the patch over the next day.

 I think we should use `get_file_data()` for retrieving the headers as it's
 more reliable and reduces the risk of getting false positives. The current
 regex is over the ''whole'' PHP file.

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


More information about the wp-trac mailing list