[wp-trac] [WordPress Trac] #55104: is_main_query() fatal error on null

WordPress Trac noreply at wordpress.org
Sat May 14 20:37:55 UTC 2022


#55104: is_main_query() fatal error on null
-------------------------------------------------+-------------------------
 Reporter:  nhadsall                             |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.1
Component:  Query                                |     Version:
 Severity:  major                                |  Resolution:
 Keywords:  good-first-bug has-patch 2nd-        |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * keywords:  good-first-bug has-patch => good-first-bug has-patch 2nd-
               opinion


Comment:

 Thanks! I see the point, but the issue from the ticket description seems
 valid and a `_doing_it_wrong()` message seems like a better developer
 experience than a fatal error here. Curious to see what others think.

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


More information about the wp-trac mailing list