Let SimplePie do more of the date handling for us. Props rmccue.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dc79a67932
commit
59c95ba48e
|
@ -841,13 +841,10 @@ function wp_widget_rss_output( $rss, $args = array() ) {
|
||||||
|
|
||||||
$date = '';
|
$date = '';
|
||||||
if ( $show_date ) {
|
if ( $show_date ) {
|
||||||
$date = $item->get_date();
|
$date = $item->get_date( 'U' );
|
||||||
|
|
||||||
if ( $date ) {
|
if ( $date ) {
|
||||||
if ( $date_stamp = strtotime( $date ) )
|
$date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date ) . '</span>';
|
||||||
$date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date_stamp ) . '</span>';
|
|
||||||
else
|
|
||||||
$date = '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue