From 450949635fd232a09ff93e611c47c3a4aa702d14 Mon Sep 17 00:00:00 2001
From: Mohammad Jangda <batmoo@gmail.com>
Date: Wed, 3 Apr 2013 18:52:04 -0400
Subject: [PATCH] Don't skip the processing of the feed if posts are empty
 because we end up skipping some additional processing that needs to happen
 (like setting the last update time and restoring revisions)

---
 includes/class-wp-push-syndication-server.php | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/includes/class-wp-push-syndication-server.php b/includes/class-wp-push-syndication-server.php
index a1f9b19..b97229e 100644
--- a/includes/class-wp-push-syndication-server.php
+++ b/includes/class-wp-push-syndication-server.php
@@ -1238,9 +1238,6 @@ class WP_Push_Syndication_Server {
 			$client         = Syndication_Client_Factory::get_client( $transport_type, $site_id );
 			$posts          = apply_filters( 'syn_pre_pull_posts', $client->get_posts(), $site, $client );
 
-			if( empty( $posts ) )
-				continue;
-
 			$post_types_processed = array();
 
 			foreach( $posts as $post ) {
-- 
GitLab