[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:28:50 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:
--------------------------+--------------------------

Comment (by westonruter):

 This bug had the effect of always overriding the `orderby` query arg to be
 `date` when generating a cache key, potentially colliding with another
 cached query with a different `orderby`.

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


More information about the wp-trac mailing list