Merge pull request #30514 from woocommerce/remove/wctracker-admin_user_agent
Remove tracking of admin User-Agent
This commit is contained in:
commit
a33f053598
|
@ -160,9 +160,6 @@ class WC_Tracker {
|
||||||
// Template overrides.
|
// Template overrides.
|
||||||
$data['template_overrides'] = self::get_all_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).
|
// Cart & checkout tech (blocks or shortcodes).
|
||||||
$data['cart_checkout'] = self::get_cart_checkout_info();
|
$data['cart_checkout'] = self::get_cart_checkout_info();
|
||||||
|
|
||||||
|
@ -677,15 +674,6 @@ class WC_Tracker {
|
||||||
return $override_data;
|
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.
|
* Search a specific post for text content.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue