Fix CVS duplicate option value problem and removed automatic since it isn't used.

git-svn-id: https://develop.svn.wordpress.org/trunk@711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-04 01:58:31 +00:00
parent 57d62ffdf3
commit 8f7ab4d152
3 changed files with 14 additions and 0 deletions

View File

@ -722,6 +722,7 @@ $q = $wpdb->query($query);
upgrade_071();
upgrade_072();
upgrade_100();
upgrade_101();
?>
<p>User setup successful!</p>

View File

@ -616,4 +616,16 @@ function upgrade_100() {
}
}
function upgrade_101() {
global $wpdb, $tableoptionvalues;
// Fix possible duplicate problem from CVS
$option59 = $wpdb->get_results("SELECT * FROM $tableoptionvalues WHERE option_id = 59");
if (1 < count($option59)) {
$wpdb->query("DELETE FROM $tableoptionvalues WHERE option_id = 59 AND optionvalue LIKE('%FROM order%')");
}
// Remove 'automatic' option for comment moderation until it actually does something
$wpdb->query("DELETE FROM $tableoptionvalues WHERE optionvalue = 'auto'");
}
?>

View File

@ -51,6 +51,7 @@ switch($step) {
upgrade_071();
upgrade_072();
upgrade_100();
upgrade_101();
?>
<h2>Step 1</h2>
<p>There's actually only one step. So if you see this, you're done. <a href="../">Have fun</a>! </p>