Translate lj user= tags. Props novalis_dt. fixes #5840

git-svn-id: http://svn.automattic.com/wordpress/trunk@10334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-01-08 17:46:48 +00:00
parent 2444331b6a
commit 6674856a90
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class LJ_Import {
if ( empty($post_title) ) {
preg_match('|<itemid>(.*?)</itemid>|is', $post, $post_title);
$post_title = $wpdb->escape(trim($post_title[1]));
$post_content = preg_replace('|<lj\s+user\s*=\s*["\']([\w-]+)["\']>|', '<a href="http://$1.livejournal.com/">$1</a>', $post_content);
}
preg_match('|<eventtime>(.*?)</eventtime>|is', $post, $post_date);