Skip to content

Commit

Permalink
REST API: declare the production/development version variables as glo…
Browse files Browse the repository at this point in the history
…bal. Otherwise they are not actually accessible inside a function scope.

Merges r116542-wpcom.
  • Loading branch information
Joey Kudish authored and dereksmart committed May 11, 2015
1 parent 312b5c6 commit 4eb9114
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json-api-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


define( 'WPCOM_JSON_API__CURRENT_VERSION', '1.1' );
global $wpcom_json_api_production_versions, $wpcom_json_api_dev_versions;

$wpcom_json_api_production_versions = array(
'1',
Expand Down

0 comments on commit 4eb9114

Please sign in to comment.