Make WordPress Core


Ignore:
Timestamp:
04/22/2006 12:18:35 AM (18 years ago)
Author:
ryan
Message:

update_option() action fix. fixes #2553

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/functions.php

    r3611 r3744  
    365365    }
    366366
     367    $_newvalue = $newvalue;
    367368    if ( is_array($newvalue) || is_object($newvalue) )
    368369        $newvalue = serialize($newvalue);
     
    374375    $wpdb->query("UPDATE $wpdb->options SET option_value = '$newvalue' WHERE option_name = '$option_name'");
    375376    if ( $wpdb->rows_affected == 1 ) {
    376         do_action("update_option_{$option_name}", $oldvalue, $newvalue);
     377        do_action("update_option_{$option_name}", array('old'=>$oldvalue, 'new'=>$_newvalue));
    377378        return true;
    378379    }
Note: See TracChangeset for help on using the changeset viewer.