@vdankbaar on WordPress.org
Mentioned in [53429] on Core SVN:Query: Check if `$wp_query` is set in query loop functions.
Mentioned in [53395] on Core SVN:Query: Check if `$wp_query` is set in `is_main_query()`.
Created ticket #55722 on Core Trac:Inconsistent guard conditions in query.php