diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index e37f7e7ed..aec4d4e27 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -191,6 +191,11 @@ function upgrade_130() { $wpdb->query('DROP TABLE IF EXISTS ' . $table_prefix . 'optiontypes'); $wpdb->query('DROP TABLE IF EXISTS ' . $table_prefix . 'optiongroups'); $wpdb->query('DROP TABLE IF EXISTS ' . $table_prefix . 'optiongroup_options'); + + // Update comments table to use comment_type + $wpdb->query("UPDATE $wpdb->comments SET comment_type='trackback', comment_content = REPLACE(comment_content, '', '') WHERE comment_content LIKE '%'"); + $wpdb->query("UPDATE $wpdb->comments SET comment_type='trackback', comment_content = REPLACE(comment_content, '', '') WHERE comment_content LIKE '%'"); + } // The functions we use to actually do stuff