[wp-trac] [WordPress Trac] #56287: Handle PHP Notice when get_post_type_object() returns null in is_post_type_archive()

WordPress Trac noreply at wordpress.org
Mon Aug 15 19:07:00 UTC 2022


#56287: Handle PHP Notice when get_post_type_object() returns null in
is_post_type_archive()
-------------------------------------------+-----------------------
 Reporter:  sean212                        |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  assigned
 Priority:  normal                         |   Milestone:  6.1
Component:  Query                          |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  php8 has-patch has-unit-tests  |     Focuses:
-------------------------------------------+-----------------------
Changes (by sean212):

 * keywords:  php8 has-patch has-unit-tests changes-requested => php8 has-
     patch has-unit-tests


Comment:

 Changes made, thanks!

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


More information about the wp-trac mailing list