Fixed issue with post type selector in_array check