- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.3.4
- Resolved in
- 4.3.6
Overview of the issue
After the WPML 4.3.0 update, some sites are displaying the “REST API is disabled, blocking some features of WPML” notice even though the REST API isn’t actually disabled.
Workaround
Before doing this, make sure this is a “false” positive and confirm that your REST API is not disabled and it is working properly.
While we are working on a fix to address this problem, you can temporarily disable this REST API detection feature by editing the functions.php file found in the ../wp-content/plugins/sitepress-multilingual-cms/inc/ folder and at line 818 replace:
function wpml_is_rest_enabled() {
return make( \WPML\Core\REST\Status::class )->isEnabled();
}
With:
function wpml_is_rest_enabled() {
return true;
}