Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 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-rss2.php

    r45247 r47122  
    9090                <link><?php the_permalink_rss(); ?></link>
    9191                <?php if ( get_comments_number() || comments_open() ) : ?>
    92                 <comments><?php comments_link_feed(); ?></comments>
     92                        <comments><?php comments_link_feed(); ?></comments>
    9393                <?php endif; ?>
     94
     95                <dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
    9496                <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
    95                 <dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
    9697                <?php the_category_rss( 'rss2' ); ?>
     98                <guid isPermaLink="false"><?php the_guid(); ?></guid>
    9799
    98                 <guid isPermaLink="false"><?php the_guid(); ?></guid>
    99100                <?php if ( get_option( 'rss_use_excerpt' ) ) : ?>
    100                 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
     101                        <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
    101102                <?php else : ?>
    102                 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
     103                        <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
    103104                        <?php $content = get_the_content_feed( 'rss2' ); ?>
    104105                        <?php if ( strlen( $content ) > 0 ) : ?>
    105                 <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
    106         <?php else : ?>
    107                 <content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
    108         <?php endif; ?>
     106                                <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
     107                        <?php else : ?>
     108                                <content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
     109                        <?php endif; ?>
    109110                <?php endif; ?>
     111
    110112                <?php if ( get_comments_number() || comments_open() ) : ?>
    111                 <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
    112                 <slash:comments><?php echo get_comments_number(); ?></slash:comments>
     113                        <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
     114                        <slash:comments><?php echo get_comments_number(); ?></slash:comments>
    113115                <?php endif; ?>
     116
    114117                <?php rss_enclosure(); ?>
     118
    115119                <?php
    116120                /**
Note: See TracChangeset for help on using the changeset viewer.