Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r10157 r10392  
    382382
    383383        $post_excerpt = $this->get_tag( $post, 'excerpt:encoded' );
    384         $post_excerpt = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_excerpt);
     384        $post_excerpt = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_excerpt);
    385385        $post_excerpt = str_replace('<br>', '<br />', $post_excerpt);
    386386        $post_excerpt = str_replace('<hr>', '<hr />', $post_excerpt);
    387387
    388388        $post_content = $this->get_tag( $post, 'content:encoded' );
    389         $post_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content);
     389        $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content);
    390390        $post_content = str_replace('<br>', '<br />', $post_content);
    391391        $post_content = str_replace('<hr>', '<hr />', $post_content);
Note: See TracChangeset for help on using the changeset viewer.