Merge pull request #30514 from woocommerce/remove/wctracker-admin_user_agent

Remove tracking of admin User-Agent
This commit is contained in:
Roy Ho 2021-08-17 15:27:14 +01:00 committed by GitHub
commit a33f053598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -160,9 +160,6 @@ class WC_Tracker {
// Template overrides.
$data['template_overrides'] = self::get_all_template_overrides();
// Template overrides.
$data['admin_user_agents'] = self::get_admin_user_agents();
// Cart & checkout tech (blocks or shortcodes).
$data['cart_checkout'] = self::get_cart_checkout_info();
@ -677,15 +674,6 @@ class WC_Tracker {
return $override_data;
}
/**
* When an admin user logs in, there user agent is tracked in user meta and collected here.
*
* @return array
*/
private static function get_admin_user_agents() {
return array_filter( (array) get_option( 'woocommerce_tracker_ua', array() ) );
}
/**
* Search a specific post for text content.
*