From 32715134422e2a7f0355af3d1e6864f0b4118817 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Wed, 15 Jul 2015 19:58:24 +0000 Subject: [PATCH] Feeds: Revert [32765] because of objections raised in #4575. Built from https://develop.svn.wordpress.org/trunk@33281 git-svn-id: http://core.svn.wordpress.org/trunk@33253 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed-rss2-comments.php | 2 +- wp-includes/feed-rss2.php | 2 +- wp-includes/feed.php | 35 ------------------------------ wp-includes/version.php | 2 +- 4 files changed, 3 insertions(+), 38 deletions(-) diff --git a/wp-includes/feed-rss2-comments.php b/wp-includes/feed-rss2-comments.php index 73d92ce6cc..c8e8d498ea 100644 --- a/wp-includes/feed-rss2-comments.php +++ b/wp-includes/feed-rss2-comments.php @@ -43,7 +43,7 @@ do_action( 'rss_tag_pre', 'rss2-comments' ); - + " rel="self" type="application/rss+xml" /> - + have_posts() ) { - $post_ids = array(); - $post_times = array(); - foreach( $wp_query->posts as $post ) { - $post_ids[] = $post->ID; - $post_times[] = $post->post_modified_gmt; - } - $postids = implode( "','", $post_ids ); - $max_post_time = max( $post_times ); - - if ( $wp_query->is_comment_feed() ) { - $max_comment_time = $wpdb->get_var( $wpdb->prepare( "SELECT MAX(comment_date_gmt) FROM $wpdb->comments WHERE comment_post_ID IN ('%s') AND comment_approved = '1'", $postids ) ); - - return max( $max_post_time, $max_comment_time ); - } - return $max_post_time; - } - - // Fallback to last time any post was modified or published. - return get_lastpostmodified( 'GMT' ); -} - /** * Retrieve the blog title for the feed title. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 0c28aba66a..16191c4048 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-beta2-33280'; +$wp_version = '4.3-beta2-33281'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.