Edit File by line
/home/barbar84/www/wp-inclu...
File: feed-rdf.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* RSS 1 RDF Feed Template for displaying RSS 1 Posts feed.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
header( 'Content-Type: ' . feed_content_type( 'rdf' ) . '; charset=' . get_option( 'blog_charset' ), true );
[7] Fix | Delete
$more = 1;
[8] Fix | Delete
[9] Fix | Delete
echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>';
[10] Fix | Delete
[11] Fix | Delete
/** This action is documented in wp-includes/feed-rss2.php */
[12] Fix | Delete
do_action( 'rss_tag_pre', 'rdf' );
[13] Fix | Delete
?>
[14] Fix | Delete
<rdf:RDF
[15] Fix | Delete
xmlns="http://purl.org/rss/1.0/"
[16] Fix | Delete
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
[17] Fix | Delete
xmlns:dc="http://purl.org/dc/elements/1.1/"
[18] Fix | Delete
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
[19] Fix | Delete
xmlns:admin="http://webns.net/mvcb/"
[20] Fix | Delete
xmlns:content="http://purl.org/rss/1.0/modules/content/"
[21] Fix | Delete
<?php
[22] Fix | Delete
/**
[23] Fix | Delete
* Fires at the end of the feed root to add namespaces.
[24] Fix | Delete
*
[25] Fix | Delete
* @since 2.0.0
[26] Fix | Delete
*/
[27] Fix | Delete
do_action( 'rdf_ns' );
[28] Fix | Delete
?>
[29] Fix | Delete
>
[30] Fix | Delete
<channel rdf:about="<?php bloginfo_rss( 'url' ); ?>">
[31] Fix | Delete
<title><?php wp_title_rss(); ?></title>
[32] Fix | Delete
<link><?php bloginfo_rss( 'url' ); ?></link>
[33] Fix | Delete
<description><?php bloginfo_rss( 'description' ); ?></description>
[34] Fix | Delete
<dc:date><?php echo get_feed_build_date( 'Y-m-d\TH:i:s\Z' ); ?> </dc:date>
[35] Fix | Delete
<sy:updatePeriod>
[36] Fix | Delete
<?php
[37] Fix | Delete
/** This filter is documented in wp-includes/feed-rss2.php */
[38] Fix | Delete
echo apply_filters( 'rss_update_period', 'hourly' );
[39] Fix | Delete
?>
[40] Fix | Delete
</sy:updatePeriod>
[41] Fix | Delete
<sy:updateFrequency>
[42] Fix | Delete
<?php
[43] Fix | Delete
/** This filter is documented in wp-includes/feed-rss2.php */
[44] Fix | Delete
echo apply_filters( 'rss_update_frequency', '1' );
[45] Fix | Delete
?>
[46] Fix | Delete
</sy:updateFrequency>
[47] Fix | Delete
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
[48] Fix | Delete
<?php
[49] Fix | Delete
/**
[50] Fix | Delete
* Fires at the end of the RDF feed header.
[51] Fix | Delete
*
[52] Fix | Delete
* @since 2.0.0
[53] Fix | Delete
*/
[54] Fix | Delete
do_action( 'rdf_header' );
[55] Fix | Delete
?>
[56] Fix | Delete
<items>
[57] Fix | Delete
<rdf:Seq>
[58] Fix | Delete
<?php
[59] Fix | Delete
while ( have_posts() ) :
[60] Fix | Delete
the_post();
[61] Fix | Delete
?>
[62] Fix | Delete
<rdf:li rdf:resource="<?php the_permalink_rss(); ?>"/>
[63] Fix | Delete
<?php endwhile; ?>
[64] Fix | Delete
</rdf:Seq>
[65] Fix | Delete
</items>
[66] Fix | Delete
</channel>
[67] Fix | Delete
<?php
[68] Fix | Delete
rewind_posts();
[69] Fix | Delete
while ( have_posts() ) :
[70] Fix | Delete
the_post();
[71] Fix | Delete
?>
[72] Fix | Delete
<item rdf:about="<?php the_permalink_rss(); ?>">
[73] Fix | Delete
<title><?php the_title_rss(); ?></title>
[74] Fix | Delete
<link><?php the_permalink_rss(); ?></link>
[75] Fix | Delete
[76] Fix | Delete
<dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
[77] Fix | Delete
<dc:date><?php echo mysql2date( 'Y-m-d\TH:i:s\Z', $post->post_date_gmt, false ); ?></dc:date>
[78] Fix | Delete
<?php the_category_rss( 'rdf' ); ?>
[79] Fix | Delete
[80] Fix | Delete
<?php if ( get_option( 'rss_use_excerpt' ) ) : ?>
[81] Fix | Delete
<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
[82] Fix | Delete
<?php else : ?>
[83] Fix | Delete
<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
[84] Fix | Delete
<content:encoded><![CDATA[<?php the_content_feed( 'rdf' ); ?>]]></content:encoded>
[85] Fix | Delete
<?php endif; ?>
[86] Fix | Delete
[87] Fix | Delete
<?php
[88] Fix | Delete
/**
[89] Fix | Delete
* Fires at the end of each RDF feed item.
[90] Fix | Delete
*
[91] Fix | Delete
* @since 2.0.0
[92] Fix | Delete
*/
[93] Fix | Delete
do_action( 'rdf_item' );
[94] Fix | Delete
?>
[95] Fix | Delete
</item>
[96] Fix | Delete
<?php endwhile; ?>
[97] Fix | Delete
</rdf:RDF>
[98] Fix | Delete
[99] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function