Skip to content

Commit

Permalink
Small fix for defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Burton committed Dec 18, 2015
1 parent 70db5fd commit 9cebb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acf-to-wp-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function _versionTwoSetup() {
private function _getAPIVersion() {
$version = 2;

if ( defined( REST_API_VERSION ) ) {
if ( defined('REST_API_VERSION') ) {
$version = REST_API_VERSION;
} else {
$version = get_option( 'rest_api_plugin_version', get_option( 'json_api_plugin_version', null ) );
Expand Down

0 comments on commit 9cebb76

Please sign in to comment.