Ticket #11437: 11437.diff
File 11437.diff, 786 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
600 600 wp_cache_set( 'notoptions', $notoptions, 'options' ); 601 601 } 602 602 603 $wpdb-> insert($wpdb->options, array('option_name' => $name, 'option_value' => $value, 'autoload' => $autoload) );603 $wpdb->query( $wpdb->prepare( "INSERT INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, %s) ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)", $name, $value, $autoload ) ); 604 604 605 605 do_action( "add_option_{$name}", $name, $value ); 606 606 do_action( 'added_option', $name, $value );