[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:09:33 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:
-------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => assigned
 * milestone:  Awaiting Review => 4.8


Comment:

 @technopolitica Thanks for the report, and welcome to WordPress Trac.

 It looks like this issue dates back to the introduction of
 `get_post_type_archive_template()` in [25291]. `get_post_type_object()`
 has returned `null` since its introduction in [12597].

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


More information about the wp-trac mailing list