[wp-trac] [WordPress Trac] #33226: wrong $key utilization on WP_Object_Cache::add()
WordPress Trac
noreply at wordpress.org
Sat Aug 1 06:51:53 UTC 2015
#33226: wrong $key utilization on WP_Object_Cache::add()
--------------------------+-----------------------------
Reporter: Lotti | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.2.3
Severity: normal | Keywords:
Focuses: multisite |
--------------------------+-----------------------------
Hello!
I noticed that the $key parameter is modified (in all of this class
methods) in order to work with a multisite installation. that's fine.
But inside the add() method (differently from all the others), this
modification is not reassigned to $key but to a new var called $id. $id is
tested in _exists method (that's fine too), but suddendly is not used in
set method! Instead is replaced by $key var, losing the multisite context
(if applied)!
Thank you.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list