diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php
index 3bf0521574..49e5ca0764 100644
--- a/wp-includes/feed-atom-comments.php
+++ b/wp-includes/feed-atom-comments.php
@@ -43,8 +43,7 @@ do_action( 'rss_tag_pre', 'atom-comments' );
-
-
+
diff --git a/wp-includes/feed-atom.php b/wp-includes/feed-atom.php
index 16e9157b7f..bce41086be 100644
--- a/wp-includes/feed-atom.php
+++ b/wp-includes/feed-atom.php
@@ -30,8 +30,7 @@ do_action( 'rss_tag_pre', 'atom' );
-
-
+
diff --git a/wp-includes/feed-rdf.php b/wp-includes/feed-rdf.php
index 708893245f..861425ae30 100644
--- a/wp-includes/feed-rdf.php
+++ b/wp-includes/feed-rdf.php
@@ -33,12 +33,7 @@ do_action( 'rss_tag_pre', 'rdf' );
-
-
-
+
-
-
-
+
http://backend.userland.com/rss092
diff --git a/wp-includes/feed-rss2-comments.php b/wp-includes/feed-rss2-comments.php
index c736bebccd..f8ba016b23 100644
--- a/wp-includes/feed-rss2-comments.php
+++ b/wp-includes/feed-rss2-comments.php
@@ -49,12 +49,7 @@ do_action( 'rss_tag_pre', 'rss2-comments' );
-
-
-
+
" rel="self" type="application/rss+xml" />
-
-
-
+
have_posts() ) {
@@ -670,16 +672,24 @@ function get_last_build_date() {
}
// Determine the maximum modified time.
- $max_modified_time = max( $modified_times );
+ $max_modified_time = max(
+ array_map(
+ function ( $time ) use ( $format ) {
+ return mysql2date( $format, $time, false );
+ },
+ $modified_times
+ )
+ );
/**
* Filters the date the last post or comment in the query was modified.
*
* @since 5.2.0
*
- * @param string $max_modified_times Date the last post or comment was modified in the query.
+ * @param string $max_modified_time Date the last post or comment was modified in the query.
+ * @param string $format The date format requested in get_feed_build_date.
*/
- return apply_filters( 'get_last_build_date', $max_modified_time );
+ return apply_filters( 'get_feed_build_date', $max_modified_time, $format );
}
/**
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 9177107fed..35217394c0 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.2-beta3-45246';
+$wp_version = '5.2-beta3-45247';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.