Install and upgrade refactoring complete.

git-svn-id: https://develop.svn.wordpress.org/trunk@1601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-09-05 01:22:17 +00:00
parent 42be6523f2
commit 173f2cd3e6
5 changed files with 317 additions and 746 deletions

View File

@@ -364,7 +364,7 @@ function add_option($name, $value = '', $description = '') {
if ( is_array($value) || is_object($value) )
$value = serialize($value);
if(!get_settings($name)) {
if( !$wpdb->get_var("SELECT option_name FROM $wpdb->options WHERE option_name = '$name'") ) {
$name = $wpdb->escape($name);
$value = $wpdb->escape($value);
$description = $wpdb->escape($description);