[wp-trac] [WordPress Trac] #55104: is_main_query() fatal error on null
WordPress Trac
noreply at wordpress.org
Sun May 15 15:55:25 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 SergeyBiryukov):
In [changeset:"53396" 53396]:
{{{
#!CommitTicketReference repository="" revision="53396"
Tests: Expand the test for conditional tags returning early if `$wp_query`
is not set.
When called too early, conditional query tags should throw a
`_doing_it_wrong()` notice and return `false`. This commit verifies that
behavior not only for `is_main_query()`, but for all the other conditional
tags too.
Follow-up to [16947], [17068], [17083], [18699], [37985], [53395].
See #55104.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55104#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list