WordPress.org

Make WordPress Core

Changeset 45215


Ignore:
Timestamp:
04/16/2019 03:45:07 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Feeds: Amend [45208] to avoid phpcs:ignore.

See #46922.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r45208 r45215  
    4444    <subtitle type="text"><?php bloginfo_rss( 'description' ); ?></subtitle>
    4545
    46     <updated><?php // phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentBeforeOpen,Squiz.PHP.EmbeddedPhp.ContentAfterOpen
    47         $date = get_last_build_date();
    48         echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' );
    49         // phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentAfterEnd
    50     ?></updated>
     46    <?php $date = get_last_build_date(); ?>
     47    <updated><?php echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' ); ?></updated>
    5148
    5249<?php if ( is_singular() ) { ?>
  • trunk/src/wp-includes/feed-atom.php

    r45208 r45215  
    3131    <subtitle type="text"><?php bloginfo_rss( 'description' ); ?></subtitle>
    3232
    33     <updated><?php // phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentBeforeOpen,Squiz.PHP.EmbeddedPhp.ContentAfterOpen
    34         $date = get_last_build_date();
    35         echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' );
    36         // phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentAfterEnd
    37     ?></updated>
     33    <?php $date = get_last_build_date(); ?>
     34    <updated><?php echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' ); ?></updated>
    3835
    3936    <link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php bloginfo_rss( 'url' ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.