convert trackbacks and pingbacks to use comment_type
git-svn-id: http://svn.automattic.com/wordpress/trunk@1719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
171c617521
commit
877f81d625
|
@ -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, '<trackback />', '') WHERE comment_content LIKE '<trackback />%'");
|
||||
$wpdb->query("UPDATE $wpdb->comments SET comment_type='trackback', comment_content = REPLACE(comment_content, '<pingback />', '') WHERE comment_content LIKE '<pingback />%'");
|
||||
|
||||
}
|
||||
|
||||
// The functions we use to actually do stuff
|
||||
|
|
Loading…
Reference in New Issue