Skip to content

Commit

Permalink
Merge pull request #400 from steffans/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec authored Mar 23, 2024
2 parents 7a04842 + 4a0342a commit e884a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-google-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function privacy_policy() {
* @return bool True if tracking for a certain setting is disabled
*/
private function disable_tracking( $type ) {
return is_admin() || current_user_can( 'manage_options' ) || ( ! $this->settings['ga_id'] ) || 'no' === $type || apply_filters( 'woocommerce_ga_disable_tracking', false, $type );
return is_admin() || current_user_can( 'manage_options' ) || empty( $this->settings['ga_id'] ) || 'no' === $type || apply_filters( 'woocommerce_ga_disable_tracking', false, $type );
}

/**
Expand Down

0 comments on commit e884a31

Please sign in to comment.