]> 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 1e8327b0dc4aa4d42e2033fce75c7aef35952a8f..b748400032afc0834527d7db370e421a29e0e696 100644 (file)
@@ -30,10 +30,13 @@ do_action( 'rss_tag_pre', 'rdf' );
        ?>
 >
 <channel rdf:about="<?php bloginfo_rss("url") ?>">
-       <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
+       <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' );