Make WordPress Core

Changeset 2055


Ignore:
Timestamp:
01/06/2005 10:07:52 AM (21 years ago)
Author:
saxmatt
Message:

Don't cache serialized options.

File:
1 edited

Legend:

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

    r2032 r2055  
    391391function add_option($name, $value = '', $description = '', $autoload = 'yes') {
    392392    global $wpdb;
     393    $original = $value;
    393394    if ( is_array($value) || is_object($value) )
    394395        $value = serialize($value);
     
    402403        if($wpdb->insert_id) {
    403404            global $cache_settings;
    404             $cache_settings->{$name} = $value;
     405            $cache_settings->{$name} = $original;
    405406        }
    406407    }
Note: See TracChangeset for help on using the changeset viewer.