Changeset 42343 for trunk/src/wp-includes/feed-rdf.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed-rdf.php
r38925 r42343 6 6 */ 7 7 8 header( 'Content-Type: ' . feed_content_type('rdf') . '; charset=' . get_option('blog_charset'), true);8 header( 'Content-Type: ' . feed_content_type( 'rdf' ) . '; charset=' . get_option( 'blog_charset' ), true ); 9 9 $more = 1; 10 10 11 echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>';11 echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; 12 12 13 13 /** This action is documented in wp-includes/feed-rss2.php */ … … 30 30 ?> 31 31 > 32 <channel rdf:about="<?php bloginfo_rss( "url")?>">32 <channel rdf:about="<?php bloginfo_rss( 'url' ); ?>"> 33 33 <title><?php wp_title_rss(); ?></title> 34 <link><?php bloginfo_rss('url') ?></link> 35 <description><?php bloginfo_rss('description') ?></description> 36 <dc:date><?php 34 <link><?php bloginfo_rss( 'url' ); ?></link> 35 <description><?php bloginfo_rss( 'description' ); ?></description> 36 <dc:date> 37 <?php 37 38 $date = get_lastpostmodified( 'GMT' ); 38 39 echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date ) : date( 'Y-m-d\TH:i:s\Z' ); 39 ?></dc:date> 40 <sy:updatePeriod><?php 40 ?> 41 </dc:date> 42 <sy:updatePeriod> 43 <?php 41 44 /** This filter is documented in wp-includes/feed-rss2.php */ 42 45 echo apply_filters( 'rss_update_period', 'hourly' ); 43 ?></sy:updatePeriod> 44 <sy:updateFrequency><?php 46 ?> 47 </sy:updatePeriod> 48 <sy:updateFrequency> 49 <?php 45 50 /** This filter is documented in wp-includes/feed-rss2.php */ 46 51 echo apply_filters( 'rss_update_frequency', '1' ); 47 ?></sy:updateFrequency> 52 ?> 53 </sy:updateFrequency> 48 54 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 49 55 <?php … … 57 63 <items> 58 64 <rdf:Seq> 59 <?php while (have_posts()): the_post(); ?> 60 <rdf:li rdf:resource="<?php the_permalink_rss() ?>"/> 65 <?php 66 while ( have_posts() ) : 67 the_post(); 68 ?> 69 <rdf:li rdf:resource="<?php the_permalink_rss(); ?>"/> 61 70 <?php endwhile; ?> 62 71 </rdf:Seq> 63 72 </items> 64 73 </channel> 65 <?php rewind_posts(); while (have_posts()): the_post(); ?> 66 <item rdf:about="<?php the_permalink_rss() ?>"> 67 <title><?php the_title_rss() ?></title> 68 <link><?php the_permalink_rss() ?></link> 69 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date> 70 <dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator> 71 <?php the_category_rss('rdf') ?> 72 <?php if (get_option('rss_use_excerpt')) : ?> 73 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 74 <?php 75 rewind_posts(); 76 while ( have_posts() ) : 77 the_post(); 78 ?> 79 <item rdf:about="<?php the_permalink_rss(); ?>"> 80 <title><?php the_title_rss(); ?></title> 81 <link><?php the_permalink_rss(); ?></link> 82 <dc:date><?php echo mysql2date( 'Y-m-d\TH:i:s\Z', $post->post_date_gmt, false ); ?></dc:date> 83 <dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator> 84 <?php the_category_rss( 'rdf' ); ?> 85 <?php if ( get_option( 'rss_use_excerpt' ) ) : ?> 86 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> 74 87 <?php else : ?> 75 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>76 <content:encoded><![CDATA[<?php the_content_feed( 'rdf')?>]]></content:encoded>88 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> 89 <content:encoded><![CDATA[<?php the_content_feed( 'rdf' ); ?>]]></content:encoded> 77 90 <?php endif; ?> 78 91 <?php … … 85 98 ?> 86 99 </item> 87 <?php endwhile; 100 <?php endwhile; ?> 88 101 </rdf:RDF>
Note: See TracChangeset
for help on using the changeset viewer.