Edit File by line
/home/barbar84/public_h.../wp-inclu...
File: feed-atom.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Atom Feed Template for displaying Atom 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( 'atom' ) . '; 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', 'atom' );
[13] Fix | Delete
?>
[14] Fix | Delete
<feed
[15] Fix | Delete
xmlns="http://www.w3.org/2005/Atom"
[16] Fix | Delete
xmlns:thr="http://purl.org/syndication/thread/1.0"
[17] Fix | Delete
xml:lang="<?php bloginfo_rss( 'language' ); ?>"
[18] Fix | Delete
xml:base="<?php bloginfo_rss( 'url' ); ?>/wp-atom.php"
[19] Fix | Delete
<?php
[20] Fix | Delete
/**
[21] Fix | Delete
* Fires at end of the Atom feed root to add namespaces.
[22] Fix | Delete
*
[23] Fix | Delete
* @since 2.0.0
[24] Fix | Delete
*/
[25] Fix | Delete
do_action( 'atom_ns' );
[26] Fix | Delete
?>
[27] Fix | Delete
>
[28] Fix | Delete
<title type="text"><?php wp_title_rss(); ?></title>
[29] Fix | Delete
<subtitle type="text"><?php bloginfo_rss( 'description' ); ?></subtitle>
[30] Fix | Delete
[31] Fix | Delete
<updated><?php echo get_feed_build_date( 'Y-m-d\TH:i:s\Z' ); ?></updated>
[32] Fix | Delete
[33] Fix | Delete
<link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php bloginfo_rss( 'url' ); ?>" />
[34] Fix | Delete
<id><?php bloginfo( 'atom_url' ); ?></id>
[35] Fix | Delete
<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
[36] Fix | Delete
[37] Fix | Delete
<?php
[38] Fix | Delete
/**
[39] Fix | Delete
* Fires just before the first Atom feed entry.
[40] Fix | Delete
*
[41] Fix | Delete
* @since 2.0.0
[42] Fix | Delete
*/
[43] Fix | Delete
do_action( 'atom_head' );
[44] Fix | Delete
[45] Fix | Delete
while ( have_posts() ) :
[46] Fix | Delete
the_post();
[47] Fix | Delete
?>
[48] Fix | Delete
<entry>
[49] Fix | Delete
<author>
[50] Fix | Delete
<name><?php the_author(); ?></name>
[51] Fix | Delete
<?php
[52] Fix | Delete
$author_url = get_the_author_meta( 'url' );
[53] Fix | Delete
if ( ! empty( $author_url ) ) :
[54] Fix | Delete
?>
[55] Fix | Delete
<uri><?php the_author_meta( 'url' ); ?></uri>
[56] Fix | Delete
<?php
[57] Fix | Delete
endif;
[58] Fix | Delete
[59] Fix | Delete
/**
[60] Fix | Delete
* Fires at the end of each Atom feed author entry.
[61] Fix | Delete
*
[62] Fix | Delete
* @since 3.2.0
[63] Fix | Delete
*/
[64] Fix | Delete
do_action( 'atom_author' );
[65] Fix | Delete
?>
[66] Fix | Delete
</author>
[67] Fix | Delete
[68] Fix | Delete
<title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss(); ?>]]></title>
[69] Fix | Delete
<link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>" />
[70] Fix | Delete
[71] Fix | Delete
<id><?php the_guid(); ?></id>
[72] Fix | Delete
<updated><?php echo get_post_modified_time( 'Y-m-d\TH:i:s\Z', true ); ?></updated>
[73] Fix | Delete
<published><?php echo get_post_time( 'Y-m-d\TH:i:s\Z', true ); ?></published>
[74] Fix | Delete
<?php the_category_rss( 'atom' ); ?>
[75] Fix | Delete
[76] Fix | Delete
<summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
[77] Fix | Delete
[78] Fix | Delete
<?php if ( ! get_option( 'rss_use_excerpt' ) ) : ?>
[79] Fix | Delete
<content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss(); ?>"><![CDATA[<?php the_content_feed( 'atom' ); ?>]]></content>
[80] Fix | Delete
<?php endif; ?>
[81] Fix | Delete
[82] Fix | Delete
<?php
[83] Fix | Delete
atom_enclosure();
[84] Fix | Delete
[85] Fix | Delete
/**
[86] Fix | Delete
* Fires at the end of each Atom feed item.
[87] Fix | Delete
*
[88] Fix | Delete
* @since 2.0.0
[89] Fix | Delete
*/
[90] Fix | Delete
do_action( 'atom_entry' );
[91] Fix | Delete
[92] Fix | Delete
if ( get_comments_number() || comments_open() ) :
[93] Fix | Delete
?>
[94] Fix | Delete
<link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>"/>
[95] Fix | Delete
<link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link( 0, 'atom' ) ); ?>" thr:count="<?php echo get_comments_number(); ?>"/>
[96] Fix | Delete
<thr:total><?php echo get_comments_number(); ?></thr:total>
[97] Fix | Delete
<?php endif; ?>
[98] Fix | Delete
</entry>
[99] Fix | Delete
<?php endwhile; ?>
[100] Fix | Delete
</feed>
[101] Fix | Delete
[102] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function