Changeset 47122 for trunk/src/wp-includes/feed-atom.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed-atom.php
r45247 r47122 51 51 <author> 52 52 <name><?php the_author(); ?></name> 53 <?php $author_url = get_the_author_meta( 'url' ); if ( ! empty( $author_url ) ) : ?> 54 <uri><?php the_author_meta( 'url' ); ?></uri> 53 <?php 54 $author_url = get_the_author_meta( 'url' ); 55 if ( ! empty( $author_url ) ) : 56 ?> 57 <uri><?php the_author_meta( 'url' ); ?></uri> 55 58 <?php 56 59 endif; … … 64 67 ?> 65 68 </author> 69 66 70 <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss(); ?>]]></title> 67 71 <link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>" /> 72 68 73 <id><?php the_guid(); ?></id> 69 74 <updated><?php echo get_post_modified_time( 'Y-m-d\TH:i:s\Z', true ); ?></updated> 70 75 <published><?php echo get_post_time( 'Y-m-d\TH:i:s\Z', true ); ?></published> 71 76 <?php the_category_rss( 'atom' ); ?> 77 72 78 <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary> 79 73 80 <?php if ( ! get_option( 'rss_use_excerpt' ) ) : ?> 74 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss(); ?>"><![CDATA[<?php the_content_feed( 'atom' ); ?>]]></content>81 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss(); ?>"><![CDATA[<?php the_content_feed( 'atom' ); ?>]]></content> 75 82 <?php endif; ?> 83 76 84 <?php 77 85 atom_enclosure(); 86 78 87 /** 79 88 * Fires at the end of each Atom feed item. … … 85 94 if ( get_comments_number() || comments_open() ) : 86 95 ?> 87 <link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>"/>88 <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(); ?>"/>89 <thr:total><?php echo get_comments_number(); ?></thr:total>96 <link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>"/> 97 <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(); ?>"/> 98 <thr:total><?php echo get_comments_number(); ?></thr:total> 90 99 <?php endif; ?> 91 100 </entry>
Note: See TracChangeset
for help on using the changeset viewer.