X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/76aea3697c6043c1613370f172395b4f65ee71f0..11be8dc178e77d0b46189bbd8e33a216a9b90942:/wp-admin/import/livejournal.php
diff --git a/wp-admin/import/livejournal.php b/wp-admin/import/livejournal.php
index bd8394ed..294750c3 100644
--- a/wp-admin/import/livejournal.php
+++ b/wp-admin/import/livejournal.php
@@ -1,11 +1,25 @@
';
+ screen_icon();
echo '
'.__('Import LiveJournal').'
';
}
@@ -56,7 +70,7 @@ class LJ_Import {
$post_content = $this->unhtmlentities($post_content);
// Clean up content
- $post_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content);
+ $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content);
$post_content = str_replace('
', '
', $post_content);
$post_content = str_replace('
', '
', $post_content);
$post_content = $wpdb->escape($post_content);
@@ -92,7 +106,7 @@ class LJ_Import {
$comment_content = $this->unhtmlentities($comment_content);
// Clean up content
- $comment_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $comment_content);
+ $comment_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $comment_content);
$comment_content = str_replace('
', '
', $comment_content);
$comment_content = str_replace('
', '
', $comment_content);
$comment_content = $wpdb->escape($comment_content);