[wp-trac] [WordPress Trac] #49368: Posts query is broken after changeset 47181

WordPress Trac noreply at wordpress.org
Wed Feb 5 13:42:16 UTC 2020


#49368: Posts query is broken after changeset 47181
-------------------------------+---------------------
 Reporter:  audrasjb           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  high               |   Milestone:  5.4
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  major              |  Resolution:
 Keywords:  needs-patch        |     Focuses:
-------------------------------+---------------------

Comment (by roytanck):

 Since `get_post_status_object` will return null for unregistered post
 statuses, checking `$post_status_obj->public` will likely produce
 warnings.

 The purpose of my patch was to check for a valid status object before
 attempting to get info from it.

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


More information about the wp-trac mailing list