From 9536c1ef4ff92b440eab3778a45e15bfb18c3f98 Mon Sep 17 00:00:00 2001 From: Mohammad Jangda <batmoo@gmail.com> Date: Tue, 11 Jun 2013 01:17:57 -0400 Subject: [PATCH] Disable manage_thumbnails for new/edit post. The XML-RPC method isn't defined anywhere and ends up failing, which mangles the return value of the insert/update post causing our connection with the syndicated child post to break since we no longer have the ID. --- includes/class-syndication-wp-xmlrpc-client.php | 5 ----- includes/class-wp-push-syndication-server.php | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/includes/class-syndication-wp-xmlrpc-client.php b/includes/class-syndication-wp-xmlrpc-client.php index f54391b..8a6a1f2 100644 --- a/includes/class-syndication-wp-xmlrpc-client.php +++ b/includes/class-syndication-wp-xmlrpc-client.php @@ -77,8 +77,6 @@ class Syndication_WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements Syndica if( !$result ) return false; - $this->manage_thumbnails( $post_ID ); - return $result; } @@ -119,9 +117,6 @@ class Syndication_WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements Syndica return false; } - - $this->manage_thumbnails( $post_ID ); - return true; } diff --git a/includes/class-wp-push-syndication-server.php b/includes/class-wp-push-syndication-server.php index 36252a1..bf9ec0c 100644 --- a/includes/class-wp-push-syndication-server.php +++ b/includes/class-wp-push-syndication-server.php @@ -864,6 +864,8 @@ class WP_Push_Syndication_Server { $this->validate_result_edit_post( $result, $info, $slave_post_states, $site->ID, $client ); } + // TODO: manage thumbnails + } } -- GitLab