Funky export dash fix.

git-svn-id: http://svn.automattic.com/wordpress/trunk@690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-02 22:39:18 +00:00
parent 0b16cf6f16
commit 7de01cdc42
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ foreach ($posts as $post) { if ('' != trim($post)) {
$comment = preg_replace('|(\n?DATE:.*)|', '', $comment); $comment = preg_replace('|(\n?DATE:.*)|', '', $comment);
$comment_content = addslashes(trim($comment)); $comment_content = addslashes(trim($comment));
$comment_content = str_replace('-----', '', $comment_content);
// Check if it's already there // Check if it's already there
if (!$wpdb->get_row("SELECT * FROM $tablecomments WHERE comment_date = '$comment_date' AND comment_content = '$comment_content'")) { if (!$wpdb->get_row("SELECT * FROM $tablecomments WHERE comment_date = '$comment_date' AND comment_content = '$comment_content'")) {