Skip to content

Commit

Permalink
Improve the WC task visibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
Valter Lorran committed Dec 14, 2023
1 parent 99e1ea0 commit a0351af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Updates the WC visibility check to use the `is_plugin_active` function.
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,7 @@ function wpcom_launchpad_is_woocommerce_setup_visible() {
return false;
}

$active_plugins = get_option( 'active_plugins' );
return in_array( 'woocommerce/woocommerce.php', $active_plugins, true );
return is_plugin_active( 'woocommerce/woocommerce.php' );
}

/**
Expand Down

0 comments on commit a0351af

Please sign in to comment.