[wp-trac] [WordPress Trac] #64135: Query: undefined variable $q in WP_Query::generate_cache_key()
WordPress Trac
noreply at wordpress.org
Wed Oct 22 06:18:24 UTC 2025
#64135: Query: undefined variable $q in WP_Query::generate_cache_key()
--------------------------+--------------------------
Reporter: ramonopoly | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Query | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by ramonopoly):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"61043" 61043]:
{{{
#!CommitTicketReference repository="" revision="61043"
Query: fix undefined variable $q in WP_Query::generate_cache_key()
The `generate_cache_key()` method in `WP_Query` referenced an undefined
variable `$q`. The method only has two parameters: `$args` and `$sql`. The
variable `$q` is not defined anywhere in this method scope. This patch
replaces the undefined `$q` variable with the correct `$args` parameter.
Follow-up to [59442]
Props ramonopoly, westonruter
Fixes #64135.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64135#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list