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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2008-01-10 21:27:08 +00:00
parent 1aaec4ff30
commit 484a252c4b
2 changed files with 16 additions and 10 deletions

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