mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Better dc:date handling: http://mosquito.wordpress.org/view.php?id=478
git-svn-id: http://svn.automattic.com/wordpress/trunk@1950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9eaa495298
commit
248016268b
@ -95,7 +95,8 @@ if ($date) :
|
||||
$date = strtotime($date[1]);
|
||||
else : // if we don't already have something from pubDate
|
||||
preg_match('|<dc:date>(.*?)</dc:date>|is', $post, $date);
|
||||
$date = preg_replace('|(-[0-9:]+)$|', '', $date[1]);
|
||||
$date = preg_replace('|([-+])([0-9]+):([0-9]+)$|', '\1\2\3', $date[1]);
|
||||
$date = str_replace('T', ' ', $date);
|
||||
$date = strtotime($date);
|
||||
endif;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user