Make WordPress Core


Ignore:
Timestamp:
01/06/2004 10:33:07 AM (22 years ago)
Author:
saxmatt
Message:

Various fixes from forums and such.

File:
1 edited

Legend:

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

    r711 r725  
    606606        // Check to see if it's already been imported
    607607        $cat = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post->ID AND category_id = $post->post_category");
    608         if (!$cat) { // If there's no result
     608        if (!$cat && 0 != $post->post_category) { // If there's no result
    609609            $wpdb->query("
    610610                INSERT INTO $tablepost2cat
     
    618618
    619619function upgrade_101() {
    620     global $wpdb, $tableoptionvalues;
     620    global $wpdb, $tableoptionvalues, $tablelinkcategories;
    621621    // Fix possible duplicate problem from CVS
    622622    $option59 = $wpdb->get_results("SELECT * FROM $tableoptionvalues WHERE option_id  = 59");
     
    627627    // Remove 'automatic' option for comment moderation until it actually does something
    628628    $wpdb->query("DELETE FROM $tableoptionvalues WHERE optionvalue = 'auto'");
     629    // Less intrusive default
     630    $wpdb->query("ALTER TABLE `$tablelinkcategories` CHANGE `show_description` `show_description` ENUM( 'Y', 'N' ) DEFAULT 'N' NOT NULL");
    629631}
    630632
Note: See TracChangeset for help on using the changeset viewer.