WordPress.org

Make WordPress Core

Ticket #47304: 47304.diff

File 47304.diff, 586 bytes (added by mukesh27, 21 months ago)

Patch.

  • wp-includes/feed.php

    diff --git a/wp-includes/feed.php b/wp-includes/feed.php
    index cba5d91a7c..ecb4a25293 100644
    a b function get_feed_build_date( $format ) { 
    672672        }
    673673
    674674        // Determine the maximum modified time.
    675         $max_modified_time = max(
    676                 array_map(
    677                         function ( $time ) use ( $format ) {
    678                                 return mysql2date( $format, $time, false );
    679                         },
    680                         $modified_times
    681                 )
    682         );
     675        $max_modified_time = mysql2date( $format, max( $modified_times ), false );
    683676
    684677        /**
    685678         * Filters the date the last post or comment in the query was modified.