[wp-trac] [WordPress Trac] #41745: Uncaught Error in get_query_var when $wp_query is null

WordPress Trac noreply at wordpress.org
Fri Oct 1 22:58:20 UTC 2021


#41745: Uncaught Error in get_query_var when $wp_query is null
--------------------------+------------------------------
 Reporter:  kbjohnson90   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  4.8.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by cpdaaronjones):

 Replying to [ticket:41745 kbjohnson90]:
 > When `get_query_var()` is called without the global $wp_query being set
 an Uncaught Exception is thrown.
 Is there anyway we can get this merged into live? Our .gov site was
 affected by the perfect combination of plugins as well and this fix
 applies to us. We are currently running the patch and it has resolved our
 issues but it would help tremendously if this survived updates please.

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


More information about the wp-trac mailing list