Translate lj user= tags. Props novalis_dt. fixes #5840
git-svn-id: https://develop.svn.wordpress.org/trunk@10334 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
51406e542e
commit
11fce3b702
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue