Pass empty string instead of null to init (https://github.com/woocommerce/woocommerce-admin/pull/7692)
This commit is contained in:
parent
9a361dde6c
commit
f5dc970a0f
|
@ -105,7 +105,7 @@ class Init {
|
|||
return false;
|
||||
}
|
||||
|
||||
$anon_id = isset( $_COOKIE['tk_ai'] ) ? sanitize_text_field( wp_unslash( $_COOKIE['tk_ai'] ) ) : null;
|
||||
$anon_id = isset( $_COOKIE['tk_ai'] ) ? sanitize_text_field( wp_unslash( $_COOKIE['tk_ai'] ) ) : '';
|
||||
$allow_tracking = 'yes' === get_option( 'woocommerce_allow_tracking' );
|
||||
$abtest = new \WooCommerce\Admin\Experimental_Abtest(
|
||||
$anon_id,
|
||||
|
|
Loading…
Reference in New Issue