Changeset 13433
- Timestamp:
- 02/26/2010 06:51:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r13427 r13433 577 577 return; 578 578 579 $_value = $value; 579 580 $value = maybe_serialize( $value ); 580 581 $autoload = ( 'no' === $autoload ) ? 'no' : 'yes'; … … 600 601 601 602 if ( $result ) { 602 do_action( "add_option_{$option}", $option, $ value );603 do_action( 'added_option', $option, $ value );603 do_action( "add_option_{$option}", $option, $_value ); 604 do_action( 'added_option', $option, $_value ); 604 605 return true; 605 606 } … … 3445 3446 wp_cache_set( $cache_key, $value, 'site-options' ); 3446 3447 3448 $_value = $value; 3447 3449 $value = maybe_serialize($value); 3448 3450 … … 3450 3452 } 3451 3453 3452 do_action( "add_site_option_{$option}", $option, $ value );3453 do_action( "add_site_option", $option, $ value );3454 do_action( "add_site_option_{$option}", $option, $_value ); 3455 do_action( "add_site_option", $option, $_value ); 3454 3456 3455 3457 return $result; … … 3533 3535 wp_cache_set( $cache_key, $value, 'site-options' ); 3534 3536 3537 $_value = $value; 3535 3538 $value = maybe_serialize( $value ); 3536 3539 $result = $wpdb->update( $wpdb->sitemeta, array( 'meta_value' => $value ), array( 'site_id' => $wpdb->siteid, 'meta_key' => $option ) ); 3540 $value = $_value; 3537 3541 } 3538 3542
Note: See TracChangeset
for help on using the changeset viewer.