Make WordPress Core

Ticket #47623: 47623.diff

File 47623.diff, 623 bytes (added by gustavogomes, 5 years ago)
  • wp-includes/feed.php

    diff --git wp-includes/feed.php wp-includes/feed.php
    index ecb4a25293..154ecc08b7 100644
    function get_feed_build_date( $format ) { 
    662662        // Extract the post modified times from the posts.
    663663        $modified_times = wp_list_pluck( $wp_query->posts, 'post_modified_gmt' );
    664664
     665        $modified_times = array_merge( $modified_times, wp_list_pluck( $wp_query->posts, 'post_date_gmt' ) );
     666
    665667        // If this is a comment feed, check those objects too.
    666668        if ( $wp_query->is_comment_feed() && $wp_query->comment_count ) {
    667669                // Extract the comment modified times from the comments.