Skip to content

Commit 237e42a

Browse files
justinshrevedereksmart
authored andcommitted
Load the new json-api-config file from the API, instead of .config/versions.php which we will be removing.
See https://[private link]#comment-2790 Merges r111814-wpcom.
1 parent 9ed52fc commit 237e42a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

class.json-api-endpoints.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<?php
22

3-
if ( file_exists( dirname( __FILE__ ) . '/.config/versions.php' ) ) {
4-
require_once( dirname( __FILE__ ) . '/.config/versions.php' );
5-
} else {
6-
define( 'WPCOM_JSON_API__CURRENT_VERSION', '1' );
7-
}
3+
require_once( dirname( __FILE__ ) . '/json-api-config.php' );
84

95
// Endpoint
106
abstract class WPCOM_JSON_API_Endpoint {

0 commit comments

Comments
 (0)