• acf-to-wp-api 1.3.3 introduced a check for the REST_API_VERSION constant.

    The WordPress 4.5 defines the constant as 2.0 in wp-includes/rest-api.php. The constant is defined whether or not the v2 API endpoints are used.

    This is a plugin-breaking problem for legacy sites running the 1.x.x API version using the json-rest-api plugin. The /wp-json/options/ endpoint can no longer be reached after updating both WP and acf-to-wp-api.

    I recognize that the v1 API plugin is deprecated and no longer maintained, even more so now that core is incorporating the v2 API directly. The long term solution is certainly to update the theme to use v2 API endpoints. That said, for stable legacy sites this situation undermines our long running advice to always update WP core & plugins because authors take pains to preserve backwards compatibility.

    https://www.ads-software.com/plugins/acf-to-wp-api/

  • The topic ‘acf-to-wp-api 1.3.3 on WP 4.5 breaks v1 API json-rest-api plugin’ is closed to new replies.