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

array check

parent 07cec4a3
Branches
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ class WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements WP_Client {
if( empty( $post_thumbnail_id ) )
return '';
if( !empty( $this->ext_thumbnail_ids[ $this->site_ID ] ) ) {
if( is_array( $this->ext_thumbnail_ids[ $this->site_ID ] ) ) {
if( array_key_exists( $post_thumbnail_id, $this->ext_thumbnail_ids[ $this->site_ID ] ) )
return $this->ext_thumbnail_ids[ $this->site_ID ][ $post_thumbnail_id ];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment