← All changes
|
jetpack_vendor/automattic/jetpack-premium-analytics/src/class-analytics.php
+5
-2
16.3-a.5
→
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.9.0'; | |
| 27 | + const PACKAGE_VERSION = '0.11.0'; | |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Whether the class has been initialized. |
| 31 | 31 | * |
| @@ -340,9 +340,12 @@ | ||
| 340 | 340 | } |
| 341 | 341 | if ( ! function_exists( __NAMESPACE__ . '\\register_default_dashboard_sections' ) ) { |
| 342 | 342 | require_once __DIR__ . '/default-dashboard-sections.php'; |
| 343 | 343 | } |
| 344 | - 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 | + } | |
| 345 | 348 | |
| 346 | 349 | // Default-on CSV export settings and server-side disable filter. |
| 347 | 350 | if ( ! function_exists( __NAMESPACE__ . '\\configure_csv_exports' ) ) { |
| 348 | 351 | require_once __DIR__ . '/csv-exports.php'; |