Ensure that we preserve GUIDs when importing from RSS. Fixes #5589 props peterjanes.

git-svn-id: https://develop.svn.wordpress.org/trunk@6593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-01-10 21:27:08 +00:00
parent 90e193bdab
commit 484a39a5b0
2 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class RSS_Import {
$cat_index++;
}
preg_match('|<guid.+?>(.*?)</guid>|is', $post, $guid);
preg_match('|<guid.*?>(.*?)</guid>|is', $post, $guid);
if ($guid)
$guid = $wpdb->escape(trim($guid[1]));
else