[wp-trac] [WordPress Trac] #25680: is_main_query() _doing_it_wrong() notice suggests using WP_Query statically
WordPress Trac
noreply at wordpress.org
Mon Sep 21 15:30:52 UTC 2015
#25680: is_main_query() _doing_it_wrong() notice suggests using WP_Query statically
------------------------------+-----------------------------
Reporter: dd32 | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Text Changes | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34366"]:
{{{
#!CommitTicketReference repository="" revision="34366"
Docs: `is_main_query()`'s `_doing_it_wrong()` notice suggests using
`WP_Query` statically (`WP_Query::is_main_query()`). Use an alternate
syntax: `WP_Query->is_main_query()`, to not confuse.
Props DrewAPicture, micahwave.
Fixes #25680.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25680#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list