[wp-trac] [WordPress Trac] #38374: Null check needed for call to get_post_type_object() in get_post_type_archive_template()

WordPress Trac noreply at wordpress.org
Mon Jan 30 19:29:23 UTC 2017


#38374: Null check needed for call to get_post_type_object() in
get_post_type_archive_template()
-------------------------------+---------------------------
 Reporter:  technopolitica     |       Owner:  boonebgorges
     Type:  defect (bug)       |      Status:  assigned
 Priority:  normal             |   Milestone:  4.8
Component:  Posts, Post Types  |     Version:  4.6.1
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------------

Comment (by boonebgorges):

 I tried writing tests for this, but the use of constants in
 `locate_template()` makes `get_post_type_archive_template()` untestable.
 See #18298.

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


More information about the wp-trac mailing list