diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
commit | 10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch) | |
tree | b4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php | |
parent | Updating script for Update (diff) | |
download | blogs-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/vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php')
-rw-r--r-- | plugins/jetpack/vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/jetpack/vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php b/plugins/jetpack/vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php new file mode 100644 index 00000000..abfe4f62 --- /dev/null +++ b/plugins/jetpack/vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php @@ -0,0 +1,47 @@ +<?php +/** + * Legacy and deprecated Jetpack Tracking class. + * + * @package automattic/jetpack-compat + */ + +use Automattic\Jetpack\Tracking; + +/** + * Legacy class JetpackTracking + * + * @deprecated See Automattic\Jetpack\Tracking + */ +class JetpackTracking { + + /** + * Enqueue tracks scripts. + * + * @deprecated See Automattic\Jetpack\Tracking + */ + public static function enqueue_tracks_scripts() { + _deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Tracking' ); + + $tracking = new Tracking(); + return $tracking->enqueue_tracks_scripts(); + } + + /** + * Record user event. + * + * @deprecated See Automattic\Jetpack\Tracking + * + * @param mixed $event_type Event type. + * @param array $data Event data. + * @param mixed $user User who did the event. + * + * @return bool + */ + public static function record_user_event( $event_type, $data = array(), $user = null ) { + _deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Tracking' ); + + $tracking = new Tracking(); + return $tracking->record_user_event( $event_type, $data, $user ); + } + +} |