mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Change $tablecomments to $wpdb-comments. From Kitty.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fbfa9fbe02
commit
86cf4e90d6
@ -285,7 +285,7 @@ $q = $wpdb->query($query);
|
||||
|
||||
$now = date('Y-m-d H:i:s');
|
||||
$now_gmt = gmdate('Y-m-d H:i:s');
|
||||
$query = "INSERT INTO $tablecomments (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.<br />To delete a comment, just log in, and view the posts\' comments, there you will have the option to edit or delete them.')";
|
||||
$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.<br />To delete a comment, just log in, and view the posts\' comments, there you will have the option to edit or delete them.')";
|
||||
$q = $wpdb->query($query);
|
||||
?>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user