Added check if Snoopy exists, and two fairly major bugs in the dashboard. update_option was not serializing objects and $cache->get() wasn't checking for the correct option name.

git-svn-id: https://develop.svn.wordpress.org/trunk@2027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-01-01 22:09:08 +00:00
parent 5a9ead8b0f
commit df201019ca
3 changed files with 6 additions and 4 deletions

View File

@@ -366,7 +366,7 @@ function get_alloptions() {
function update_option($option_name, $newvalue) {
global $wpdb, $cache_settings;
if ( is_array($newvalue) || is_object($value) )
if ( is_array($newvalue) || is_object($newvalue) )
$newvalue = serialize($newvalue);
$newvalue = trim($newvalue); // I can't think of any situation we wouldn't want to trim