[wp-trac] [WordPress Trac] #55104: is_main_query() fatal error on null
WordPress Trac
noreply at wordpress.org
Mon May 16 01:00:01 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 |
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
In [53396] I think
`test_conditional_tags_trigger_doing_it_wrong_and_return_false_if_wp_query_is_not_set`
could benefit from a data provider rather than a foreach loop.
> This failing hard with a fatal error seems like a benefit, and is
something I originally anticipated.
@nacin Your thinking at the time is not documented on #18677, do you
recall what it was? This is a somewhat optimistic question as it was 11
years ago.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55104#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list