diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index f08d55c6cb..edb033a1cc 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -708,7 +708,9 @@ function upgrade_110() { $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 6"); // Add blog_charset option - $wpdb->query("INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (93, 1, 'blog_charset', 'Y', 3, 'utf-8', 20, 8, 'your blog\'s charset (here\'s a list of possible charsets)', 8)"); + if(!$wpdb->get_var("SELECT * FROM $tableoptiongroup_options WHERE option_id = '93'")) { + $wpdb->query("INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (93, 1, 'blog_charset', 'Y', 3, 'utf-8', 20, 8, 'your blog\'s charset (here\'s a list of possible charsets)', 8)"); + } }