WordPress.org

Make WordPress Core

Changeset 10334


Ignore:
Timestamp:
01/08/2009 05:46:48 PM (9 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/livejournal.php

    r9903 r10334  
    6060                preg_match('|<itemid>(.*?)</itemid>|is', $post, $post_title);
    6161                $post_title = $wpdb->escape(trim($post_title[1]));
     62            $post_content = preg_replace('|<lj\s+user\s*=\s*["\']([\w-]+)["\']>|', '<a href="http://$1.livejournal.com/">$1</a>', $post_content);
    6263            }
    6364
Note: See TracChangeset for help on using the changeset viewer.