Funky export dash fix.
git-svn-id: http://svn.automattic.com/wordpress/trunk@690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0b16cf6f16
commit
7de01cdc42
|
@ -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'")) {
|
||||||
|
|
Loading…
Reference in New Issue