Ticket #4995: 4995.diff

File 4995.diff, 1.2 KB (added by Nazgul, 5 years ago)
  • wp-admin/includes/upgrade.php

     
    195195        if ( $wp_current_db_version < 5539 ) 
    196196                upgrade_230(); 
    197197 
     198        if ( $wp_current_db_version < 6124 ) 
     199                upgrade_230_old_tables(); 
     200 
    198201        maybe_disable_automattic_widgets(); 
    199202 
    200203        $wp_rewrite->flush_rules(); 
     
    693696        $wpdb->show_errors(); 
    694697} 
    695698 
     699function upgrade_230_old_tables() { 
     700        global $wpdb; 
     701        $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'categories'); 
     702        $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'link2cat'); 
     703        $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'post2cat'); 
     704} 
     705 
    696706function upgrade_old_slugs() { 
    697707        // upgrade people who were using the Redirect Old Slugs plugin 
    698708        global $wpdb; 
  • wp-includes/version.php

     
    33// This holds the version number in a separate file so we can bump it without cluttering the SVN 
    44 
    55$wp_version = '2.3-beta3'; 
    6 $wp_db_version = 6075; 
     6$wp_db_version = 6124; 
    77 
    88?>