X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/959f97d8ecd5c1668103a3e41c795486b944bc68..8cc0f04ca22ffd9449495b3e0240603309c9932c:/wp-admin/import/blogware.php?ds=sidebyside diff --git a/wp-admin/import/blogware.php b/wp-admin/import/blogware.php index 6bb63a7b..500a08ba 100644 --- a/wp-admin/import/blogware.php +++ b/wp-admin/import/blogware.php @@ -1,13 +1,27 @@ '; + screen_icon(); echo '

'.__('Import Blogware').'

'; } @@ -75,7 +89,7 @@ class BW_Import { } // 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); @@ -95,7 +109,7 @@ class BW_Import { return $post_id; } if (!$post_id) { - _e("Couldn't get post ID"); + _e('Couldn’t get post ID'); echo ''; break; } @@ -115,7 +129,7 @@ class BW_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); @@ -141,7 +155,7 @@ class BW_Import { } if ( $num_comments ) { echo ' '; - printf( __ngettext('%s comment', '%s comments', $num_comments), $num_comments ); + printf( _n('%s comment', '%s comments', $num_comments), $num_comments ); } echo ''; flush();