diff --git a/wp-admin/import-rss.php b/wp-admin/import-rss.php index 420007e5e0..2521557e7e 100644 --- a/wp-admin/import-rss.php +++ b/wp-admin/import-rss.php @@ -90,9 +90,10 @@ $title = addslashes( trim($title[1]) ); $post_name = sanitize_title($title); preg_match('|(.*?)|is', $post, $date); -$date = strtotime($date[1]); -if (!$date) : // if we don't already have something from pubDate +if ($date) : + $date = strtotime($date[1]); +else : // if we don't already have something from pubDate preg_match('|(.*?)|is', $post, $date); $date = preg_replace('|(-[0-9:]+)$|', '', $date[1]); $date = strtotime($date);