fixed undfined offset error in wp_integrations::post_thumbnail()