Let SimplePie do more of the date handling for us. Props rmccue.
git-svn-id: https://develop.svn.wordpress.org/trunk@16566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b1417100ce
commit
0da69e3b32
@ -841,13 +841,10 @@ function wp_widget_rss_output( $rss, $args = array() ) {
|
||||
|
||||
$date = '';
|
||||
if ( $show_date ) {
|
||||
$date = $item->get_date();
|
||||
$date = $item->get_date( 'U' );
|
||||
|
||||
if ( $date ) {
|
||||
if ( $date_stamp = strtotime( $date ) )
|
||||
$date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date_stamp ) . '</span>';
|
||||
else
|
||||
$date = '';
|
||||
$date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date ) . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user