Skip to content

Commit

Permalink
Merge pull request #35 from connorjburton/api-version-fix
Browse files Browse the repository at this point in the history
Compatibility fix for V2.0Beta9
  • Loading branch information
Chris Hutchinson committed Dec 15, 2015
2 parents afbbbe1 + 5b71a9b commit 52e1d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acf-to-wp-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function __construct() {
$this->plugin->url = WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__), "", plugin_basename(__FILE__));
$this->plugin->version = '1.3.2';

$this->apiVersion = get_option( 'rest_api_plugin_version', get_option( 'json_api_plugin_version', null ) );
$this->apiVersion = (REST_API_VERSION) ?: get_option( 'rest_api_plugin_version', get_option( 'json_api_plugin_version', null ) );

// Version One
if($this->_isAPIVersionOne()) {
Expand Down Expand Up @@ -539,4 +539,4 @@ function registerRoutes( $routes ) {

}

$ACFtoWPAPI = new ACFtoWPAPI();
$ACFtoWPAPI = new ACFtoWPAPI();

0 comments on commit 52e1d02

Please sign in to comment.