summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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
);