strip CDATA from title. Props pgarrett and mdawaffe. fixes #879
git-svn-id: https://develop.svn.wordpress.org/trunk@4150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e7e539054
commit
78a3e54add
|
@ -38,7 +38,7 @@ class RSS_Import {
|
|||
$index = 0;
|
||||
foreach ($this->posts as $post) {
|
||||
preg_match('|<title>(.*?)</title>|is', $post, $post_title);
|
||||
$post_title = $wpdb->escape(trim($post_title[1]));
|
||||
$post_title = str_replace(array('<![CDATA[', ']]>'), '', $wpdb->escape( trim($post_title[1]) ));
|
||||
|
||||
preg_match('|<pubdate>(.*?)</pubdate>|is', $post, $post_date_gmt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue