From dfd3ae6068c3043654751a55b842296edbe105c6 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 4 Feb 2009 00:04:29 +0000 Subject: [PATCH] Fix single quote problems in LJ importer, props beaulebens, fixes #8999 git-svn-id: https://develop.svn.wordpress.org/trunk@10492 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/livejournal.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/wp-admin/import/livejournal.php b/wp-admin/import/livejournal.php index d7e30841d3..212fdab896 100644 --- a/wp-admin/import/livejournal.php +++ b/wp-admin/import/livejournal.php @@ -234,12 +234,6 @@ class LJ_API_Import { (.*)|is', $comment, $matches ); $comment_content = !empty( $comment_subject ) ? $comment_subject . "\n\n" . $matches[1] : $matches[1]; - $comment_content = $this->unhtmlentities( $comment_content ); + $comment_content = html_entity_decode( $comment_content ); + $comment_content = str_replace( ''', "'", $comment_content ); $comment_content = wpautop( $comment_content ); $comment_content = str_replace( '
', '
', $comment_content ); $comment_content = str_replace( '
', '
', $comment_content );