Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r9903 r10392  
    7171
    7272                        // Clean up content
    73                         $post_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content);
     73                        $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content);
    7474                        $post_content = str_replace('<br>', '<br />', $post_content);
    7575                        $post_content = str_replace('<hr>', '<hr />', $post_content);
     
    107107
    108108                                        // Clean up content
    109                                         $comment_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $comment_content);
     109                                        $comment_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $comment_content);
    110110                                        $comment_content = str_replace('<br>', '<br />', $comment_content);
    111111                                        $comment_content = str_replace('<hr>', '<hr />', $comment_content);
Note: See TracChangeset for help on using the changeset viewer.