summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php')
-rw-r--r--plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php b/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php
index 69991c70..551b9f71 100644
--- a/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php
+++ b/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php
@@ -1,4 +1,8 @@
<?php
+
+use Automattic\Jetpack\Tracking;
+use Automattic\Jetpack\Assets;
+
include_once( 'class.jetpack-admin-page.php' );
include_once( JETPACK__PLUGIN_DIR . 'class.jetpack-modules-list-table.php' );
@@ -117,7 +121,8 @@ class Jetpack_Settings_Page extends Jetpack_Admin_Page {
</div><!-- /.content -->
<?php
- JetpackTracking::record_user_event( 'wpa_page_view', array( 'path' => 'old_settings' ) );
+ $tracking = new Tracking();
+ $tracking->record_user_event( 'wpa_page_view', array( 'path' => 'old_settings' ) );
}
/**
@@ -133,7 +138,7 @@ class Jetpack_Settings_Page extends Jetpack_Admin_Page {
function page_admin_scripts() {
wp_enqueue_script(
'jetpack-admin-js',
- Jetpack::get_file_url_for_environment( '_inc/build/jetpack-admin.min.js', '_inc/jetpack-admin.js' ),
+ Assets::get_file_url_for_environment( '_inc/build/jetpack-admin.min.js', '_inc/jetpack-admin.js' ),
array( 'jquery' ),
JETPACK__VERSION
);