Changeset 725 for trunk/wp-admin/upgrade-functions.php
- Timestamp:
- 01/06/2004 10:33:07 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upgrade-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-functions.php
r711 r725 606 606 // Check to see if it's already been imported 607 607 $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 result608 if (!$cat && 0 != $post->post_category) { // If there's no result 609 609 $wpdb->query(" 610 610 INSERT INTO $tablepost2cat … … 618 618 619 619 function upgrade_101() { 620 global $wpdb, $tableoptionvalues ;620 global $wpdb, $tableoptionvalues, $tablelinkcategories; 621 621 // Fix possible duplicate problem from CVS 622 622 $option59 = $wpdb->get_results("SELECT * FROM $tableoptionvalues WHERE option_id = 59"); … … 627 627 // Remove 'automatic' option for comment moderation until it actually does something 628 628 $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"); 629 631 } 630 632
Note: See TracChangeset
for help on using the changeset viewer.