From 0763edaeea749165fb4261bcbb0e55526aed8bba Mon Sep 17 00:00:00 2001 From: Paul Sealock Date: Tue, 26 Feb 2019 07:57:44 +1300 Subject: [PATCH 1/2] Change prefix to wcadmin --- includes/tracks/class-wc-site-tracking.php | 6 ++++++ includes/tracks/class-wc-tracks.php | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/includes/tracks/class-wc-site-tracking.php b/includes/tracks/class-wc-site-tracking.php index 198da8393db..91130ac6a74 100644 --- a/includes/tracks/class-wc-site-tracking.php +++ b/includes/tracks/class-wc-site-tracking.php @@ -93,5 +93,11 @@ class WC_Site_Tracking { call_user_func( $init_method ); } } + + add_filter( 'http_request_args', function( $r, $url ) { + error_log( $r['method'] . ' ' . $url ); + return $r; + },10, 2 ); + } } diff --git a/includes/tracks/class-wc-tracks.php b/includes/tracks/class-wc-tracks.php index 01e66c662a2..873fa4043e2 100644 --- a/includes/tracks/class-wc-tracks.php +++ b/includes/tracks/class-wc-tracks.php @@ -11,11 +11,9 @@ class WC_Tracks { /** - * Prefix. - * - * @todo Find a good prefix. + * Tracks event name prefix. */ - const PREFIX = 'wca_test_'; + const PREFIX = 'wcadmin_'; /** * Gather blog related properties. From bf2561270a02f95e4fe596dc45bfd53dcfb4c085 Mon Sep 17 00:00:00 2001 From: Paul Sealock Date: Tue, 26 Feb 2019 07:59:12 +1300 Subject: [PATCH 2/2] remove check --- includes/tracks/class-wc-site-tracking.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/includes/tracks/class-wc-site-tracking.php b/includes/tracks/class-wc-site-tracking.php index 91130ac6a74..198da8393db 100644 --- a/includes/tracks/class-wc-site-tracking.php +++ b/includes/tracks/class-wc-site-tracking.php @@ -93,11 +93,5 @@ class WC_Site_Tracking { call_user_func( $init_method ); } } - - add_filter( 'http_request_args', function( $r, $url ) { - error_log( $r['method'] . ' ' . $url ); - return $r; - },10, 2 ); - } }