Make WordPress Core


Ignore:
Timestamp:
01/04/2004 01:58:31 AM (23 years ago)
Author:
saxmatt
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade-functions.php

    r707 r711  
    617617}
    618618
     619function upgrade_101() {
     620        global $wpdb, $tableoptionvalues;
     621        // Fix possible duplicate problem from CVS
     622        $option59 = $wpdb->get_results("SELECT * FROM $tableoptionvalues WHERE option_id  = 59");
     623        if (1 < count($option59)) {
     624                $wpdb->query("DELETE FROM $tableoptionvalues WHERE option_id = 59 AND optionvalue LIKE('%FROM  order%')");
     625        }
     626       
     627        // Remove 'automatic' option for comment moderation until it actually does something
     628        $wpdb->query("DELETE FROM $tableoptionvalues WHERE optionvalue = 'auto'");
     629}
     630
    619631?>
Note: See TracChangeset for help on using the changeset viewer.