WordPress.org

Make WordPress Core

Changeset 4857


Ignore:
Timestamp:
02/01/2007 10:03:34 AM (11 years ago)
Author:
markjaquith
Message:

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

Location:
branches/2.1/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/cache.php

    r4686 r4857  
    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);
  • branches/2.1/wp-includes/version.php

    r4797 r4857  
    44
    55$wp_version = '2.1.1-alpha';
    6 $wp_db_version = 4772;
     6$wp_db_version = 4773;
    77
    88?>
Note: See TracChangeset for help on using the changeset viewer.