public function check_rest_api_compat()
{
/**
* Filters the list of REST API compat files to be included.
*
* @since 2.2.5
*
* @param array $args Array of REST API compat files to include.
*/
$_jetpack_rest_api_compat_includes = apply_filters('jetpack_rest_api_compat', array());
if (function_exists('bbpress')) {
$_jetpack_rest_api_compat_includes[] = JETPACK__PLUGIN_DIR . 'class.jetpack-bbpress-json-api-compat.php';
}
foreach ($_jetpack_rest_api_compat_includes as $_jetpack_rest_api_compat_include) {
require_once $_jetpack_rest_api_compat_include;
}
}