Make WordPress Core

Changeset 4856


Ignore:
Timestamp:
02/01/2007 09:16:15 AM (18 years ago)
Author:
markjaquith
Message:

make sure nothing going into the object cache is being passed by reference. fixes #3726

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r4855 r4856  
    22function wp_cache_add($key, $data, $flag = '', $expire = 0) {
    33    global $wp_object_cache;
     4    $data = unserialize(serialize($data));
    45
    56    return $wp_object_cache->add($key, $data, $flag, $expire);
     
    3839function wp_cache_replace($key, $data, $flag = '', $expire = 0) {
    3940    global $wp_object_cache;
     41    $data = unserialize(serialize($data));
    4042
    4143    return $wp_object_cache->replace($key, $data, $flag, $expire);
     
    4446function wp_cache_set($key, $data, $flag = '', $expire = 0) {
    4547    global $wp_object_cache;
     48    $data = unserialize(serialize($data));
    4649
    4750    return $wp_object_cache->set($key, $data, $flag, $expire);
  • trunk/wp-includes/version.php

    r4855 r4856  
    44
    55$wp_version = '2.2-bleeding';
    6 $wp_db_version = 4773;
     6$wp_db_version = 4774;
    77
    88?>
Note: See TracChangeset for help on using the changeset viewer.