Make WordPress Core

Ticket #6269: 6269.patch

File 6269.patch, 615 bytes (added by Viper007Bond, 17 years ago)

.diff file of sweetdeal's rss.php modifications

  • wp-admin/import/rss.php

     
    8383                        if (!$post_content) {
    8484                                // This is for feeds that put content in description
    8585                                preg_match('|<description>(.*?)</description>|is', $post, $post_content);
    86                                 $post_content = $wpdb->escape($this->unhtmlentities(trim($post_content[1])));
     86                                $post_content = str_replace(array ('<![CDATA[', ']]>'), '', $wpdb->escape($this->unhtmlentities(trim($post_content[1]))));
    8787                        }
    8888
    8989                        // Clean up content