Ticket #2591: serialize_all_options.diff
File serialize_all_options.diff, 640 bytes (added by , 19 years ago) |
---|
-
wp-includes/functions.php
365 365 return true; 366 366 } 367 367 368 if ( is_array($newvalue) || is_object($newvalue) ) 369 $newvalue = serialize($newvalue); 368 $newvalue = serialize($newvalue); 370 369 371 370 wp_cache_set($option_name, $newvalue, 'options'); 372 371 … … 395 394 if ( false !== get_option($name) ) 396 395 return; 397 396 398 if ( is_array($value) || is_object($value) ) 399 $value = serialize($value); 397 $value = serialize($value); 400 398 401 399 wp_cache_set($name, $value, 'options'); 402 400