Make WordPress Core


Ignore:
Timestamp:
03/25/2006 09:46:53 PM (18 years ago)
Author:
ryan
Message:

update_option() action fix. fixes #2553

File:
1 edited

Legend:

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

    r3656 r3659  
    366366    }
    367367
     368    $_newvalue = $newvalue;
    368369    if ( is_array($newvalue) || is_object($newvalue) )
    369370        $newvalue = serialize($newvalue);
     
    375376    $wpdb->query("UPDATE $wpdb->options SET option_value = '$newvalue' WHERE option_name = '$option_name'");
    376377    if ( $wpdb->rows_affected == 1 ) {
    377         do_action("update_option_{$option_name}", $oldvalue, $newvalue);
     378        do_action("update_option_{$option_name}", array('old'=>$oldvalue, 'new'=>$_newvalue));
    378379        return true;
    379380    }
Note: See TracChangeset for help on using the changeset viewer.