Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed-atom.php

    r45247 r47122  
    5151        <author>
    5252            <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>
    5558                <?php
    5659            endif;
     
    6467            ?>
    6568        </author>
     69
    6670        <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss(); ?>]]></title>
    6771        <link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>" />
     72
    6873        <id><?php the_guid(); ?></id>
    6974        <updated><?php echo get_post_modified_time( 'Y-m-d\TH:i:s\Z', true ); ?></updated>
    7075        <published><?php echo get_post_time( 'Y-m-d\TH:i:s\Z', true ); ?></published>
    7176        <?php the_category_rss( 'atom' ); ?>
     77
    7278        <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
     79
    7380        <?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>
    7582        <?php endif; ?>
     83
    7684        <?php
    7785        atom_enclosure();
     86
    7887        /**
    7988         * Fires at the end of each Atom feed item.
     
    8594        if ( get_comments_number() || comments_open() ) :
    8695            ?>
    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>
    9099        <?php endif; ?>
    91100    </entry>
Note: See TracChangeset for help on using the changeset viewer.