Make WordPress Core

Ticket #3434: wordpress.php.diff

File wordpress.php.diff, 579 bytes (added by technosailor, 17 years ago)
  • wp-admin/import/wordpress.php

     
    232232                        $post_content = str_replace('<br>', '<br />', $post_content);
    233233                        $post_content = str_replace('<hr>', '<hr />', $post_content);
    234234
    235                         preg_match_all('|<category>(.*?)</category>|is', $post, $categories);
     235                        preg_match_all('|<category><..CDATA.(.*?)..></category>|is', $post, $categories);
    236236                        $categories = $categories[1];
    237237
    238238                        $cat_index = 0;