← All changes
|
jetpack_vendor/automattic/jetpack-explat/src/class-explat.php
+2
-2
13.7.2
→
16.3-beta
View file →
| @@ -19,9 +19,9 @@ | ||
| 19 | 19 | * ExPlat package version |
| 20 | 20 | * |
| 21 | 21 | * @var string |
| 22 | 22 | */ |
| 23 | - const PACKAGE_VERSION = '0.1.1'; | |
| 23 | + const PACKAGE_VERSION = '0.6.3'; | |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Initializer. |
| 27 | 27 | * Used to configure the ExPlat package |
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | |
| 36 | 36 | // Set up the REST authentication hooks. |
| 37 | 37 | Rest_Authentication::init(); |
| 38 | 38 | |
| 39 | - add_action( 'rest_api_init', array( new REST_Controller(), 'register_rest_routes' ) ); | |
| 39 | + add_action( 'rest_api_init', array( REST_Controller::class, 'register' ) ); | |
| 40 | 40 | |
| 41 | 41 | // Runs right after the Jetpack ExPlat package is initialized. |
| 42 | 42 | do_action( 'jetpack_explat_initialized' ); |
| 43 | 43 | } |