From 1089c39b5535a2cdf417feaa789e8ff60be07f00 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 9 Nov 2004 02:40:09 +0000 Subject: [PATCH] Use $wpdb->post2cat instead of wp_main_post2cat. Bug 442. Hat tip: ludoo. git-svn-id: https://develop.svn.wordpress.org/trunk@1848 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index dad1c2c897..3676e29f0f 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -146,7 +146,7 @@ $now = date('Y-m-d H:i:s'); $now_gmt = gmdate('Y-m-d H:i:s'); $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_category, post_modified, post_modified_gmt) VALUES ('1', '$now', '$now_gmt', 'Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!', 'Hello world!', '0', '$now', '$now_gmt')"); -$wpdb->query( "INSERT INTO `wp_main_post2cat` (`rel_id`, `post_id`, `category_id`) VALUES (1, 1, 0)" ); +$wpdb->query( "INSERT INTO $wpdb->post2cat (`rel_id`, `post_id`, `category_id`) VALUES (1, 1, 0)" ); // Default comment $wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content) VALUES ('1', 'Mr WordPress', 'mr@wordpress.org', 'http://wordpress.org', '127.0.0.1', '$now', '$now_gmt', 'Hi, this is a comment.
To delete a comment, just log in, and view the posts\' comments, there you will have the option to edit or delete them.')");