← All changes
|
jetpack_vendor/automattic/jetpack-premium-analytics/src/class-analytics.php
+7
-4
16.3-a.3
→
16.3
View file →
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | * Loads the wp-build output and registers the dashboard's admin page. |
| 24 | 24 | */ |
| 25 | 25 | class Analytics { |
| 26 | 26 | |
| 27 | - const PACKAGE_VERSION = '0.8.0'; | |
| 27 | + const PACKAGE_VERSION = '0.11.0'; | |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Whether the class has been initialized. |
| 31 | 31 | * |
| @@ -284,10 +284,9 @@ | ||
| 284 | 284 | Connection_Configuration::configure(); |
| 285 | 285 | |
| 286 | 286 | Sync_Status_Tracker::configure(); |
| 287 | 287 | |
| 288 | - // TEMPORARY (WOOA7S-1550): register the interim woocommerce_analytics sync module so | |
| 289 | - // Sync_Status_Tracker has a full sync to observe. Remove when the shared sync-modules package lands. | |
| 288 | + // Opts in to the shared woocommerce_analytics sync module so Sync_Status_Tracker has a full sync to observe. | |
| 290 | 289 | Sync_Configuration::register(); |
| 291 | 290 | } |
| 292 | 291 | |
| 293 | 292 | /** |
| @@ -341,9 +340,12 @@ | ||
| 341 | 340 | } |
| 342 | 341 | if ( ! function_exists( __NAMESPACE__ . '\\register_default_dashboard_sections' ) ) { |
| 343 | 342 | require_once __DIR__ . '/default-dashboard-sections.php'; |
| 344 | 343 | } |
| 345 | - configure_dashboard_preview_scope(); | |
| 344 | + // An older copy of the package may have loaded dashboard-sections.php under the previous name. | |
| 345 | + if ( function_exists( __NAMESPACE__ . '\\configure_dashboard_sections_script_data' ) ) { | |
| 346 | + configure_dashboard_sections_script_data(); | |
| 347 | + } | |
| 346 | 348 | |
| 347 | 349 | // Default-on CSV export settings and server-side disable filter. |
| 348 | 350 | if ( ! function_exists( __NAMESPACE__ . '\\configure_csv_exports' ) ) { |
| 349 | 351 | require_once __DIR__ . '/csv-exports.php'; |
| @@ -383,8 +385,9 @@ | ||
| 383 | 385 | private static function load_build() { |
| 384 | 386 | $build_entry = self::$build_entry ?? __DIR__ . '/../build/build.php'; |
| 385 | 387 | if ( file_exists( $build_entry ) ) { |
| 386 | 388 | require_once $build_entry; |
| 389 | + require_once __DIR__ . '/sdk-module.php'; | |
| 387 | 390 | } |
| 388 | 391 | } |
| 389 | 392 | |
| 390 | 393 | /** |