From 7b6f562de5e284d05522156145e39962e412f810 Mon Sep 17 00:00:00 2001
From: Mohammad Jangda <batmoo@gmail.com>
Date: Thu, 4 Apr 2013 17:55:32 -0400
Subject: [PATCH] $post is an array not an stdClass

---
 includes/class-wp-push-syndication-server.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/class-wp-push-syndication-server.php b/includes/class-wp-push-syndication-server.php
index 2d541d8..a3061f8 100644
--- a/includes/class-wp-push-syndication-server.php
+++ b/includes/class-wp-push-syndication-server.php
@@ -1247,8 +1247,8 @@ class WP_Push_Syndication_Server {
 			foreach( $posts as $post ) {
 
 				if ( ! in_array( $post->post_type, $post_types_processed ) ) {
-					remove_post_type_support( $post->post_type, 'revisions' );
-					$post_types_processed[] = $post->post_type;
+					remove_post_type_support( $post['post_type'], 'revisions' );
+					$post_types_processed[] = $post['post_type'];
 				}
 
 				if ( empty( $post['post_guid'] ) )
-- 
GitLab