Skip to content
Snippets Groups Projects
Commit 09830a35 authored by Prasath Nadarajah's avatar Prasath Nadarajah
Browse files

manage thumbnail method

parent 1452f3f0
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ class WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements WP_Client {
}
public function manage_thumbnails( $post_ID, $ext_ID = '' ) {
public function manage_thumbnails( $post_ID ) {
$post_thumbnail_id = get_post_thumbnail_id( $post_ID );
if( empty( $post_thumbnail_id ) )
......@@ -151,8 +151,10 @@ class WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements WP_Client {
return $this->ext_thumbnail_ids[ $this->site_ID ][ $post_thumbnail_id ];
}
if( $this->insert_post_thumbnail( $post_thumbnail_id ) )
if( $this->insert_post_thumbnail( $post_thumbnail_id ) ) {
$this->ext_thumbnail_ids[ $this->site_ID ] = $this->get_response();
return $this->get_response();
}
return '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment