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:
parent
2444331b6a
commit
6674856a90
|
@ -59,6 +59,7 @@ class LJ_Import {
|
||||||
if ( empty($post_title) ) {
|
if ( empty($post_title) ) {
|
||||||
preg_match('|<itemid>(.*?)</itemid>|is', $post, $post_title);
|
preg_match('|<itemid>(.*?)</itemid>|is', $post, $post_title);
|
||||||
$post_title = $wpdb->escape(trim($post_title[1]));
|
$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);
|
preg_match('|<eventtime>(.*?)</eventtime>|is', $post, $post_date);
|
||||||
|
|
Loading…
Reference in New Issue