[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 16 06:16:58 UTC 2017


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

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:38374.diff] would confirm that `$obj` is a post type object
 before accessing the property.

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


More information about the wp-trac mailing list