]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/feed-rdf.php
WordPress 4.7.1-scripts
[autoinstalls/wordpress.git] / wp-includes / feed-rdf.php
index 8302881500e9bdbe526eb9a52cc04406f160e2c4..b748400032afc0834527d7db370e421a29e0e696 100644 (file)
@@ -33,7 +33,10 @@ do_action( 'rss_tag_pre', 'rdf' );
        <title><?php wp_title_rss(); ?></title>
        <link><?php bloginfo_rss('url') ?></link>
        <description><?php bloginfo_rss('description') ?></description>
-       <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
+       <dc:date><?php
+               $date = get_lastpostmodified( 'GMT' );
+               echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date ) : date( 'Y-m-d\TH:i:s\Z' );
+       ?></dc:date>
        <sy:updatePeriod><?php
                /** This filter is documented in wp-includes/feed-rss2.php */
                echo apply_filters( 'rss_update_period', 'hourly' );