WordPress.org

Make WordPress Core

Changeset 16566


Ignore:
Timestamp:
11/24/10 11:53:12 (3 years ago)
Author:
westi
Message:

Let SimplePie do more of the date handling for us. Props rmccue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r16522 r16566  
    842842        $date = ''; 
    843843        if ( $show_date ) { 
    844             $date = $item->get_date(); 
     844            $date = $item->get_date( 'U' ); 
    845845 
    846846            if ( $date ) { 
    847                 if ( $date_stamp = strtotime( $date ) ) 
    848                     $date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date_stamp ) . '</span>'; 
    849                 else 
    850                     $date = ''; 
     847                $date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date ) . '</span>'; 
    851848            } 
    852849        } 
Note: See TracChangeset for help on using the changeset viewer.