[wp-trac] [WordPress Trac] #21327: No default value is set for $group in WP_Object_Cache for the decr method

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 20 19:59:13 UTC 2012


#21327: No default value is set for $group in WP_Object_Cache for the decr method
-----------------------------+------------------
 Reporter:  bananastalktome  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.5
Component:  Cache            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------

Comment (by bananastalktome):

 @nacin the problem is more with the wrapper {{{wp_cache_decr}}}, which
 passes an empty string as the {{{group}}} param to the {{{decr}}} method
 on global {{{$wp_object_cache}}}. So, for example, {{{wp_cache_decr("dog",
 1)}}} would result in the grouping being set as an empty string rather
 than {{{"default"}}}. I might be wrong, so please correct me if I am :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21327#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list