From 85be69ad6d5b2891078dc00b10564782783204d9 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Mon, 27 Sep 2004 13:52:46 +0000 Subject: [PATCH] convert trackbacks and pingbacks to use comment_type git-svn-id: https://develop.svn.wordpress.org/trunk@1719 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/upgrade-functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index e37f7e7ed2..aec4d4e270 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