Closed ibndawood closed 1 year ago
When WooCommerce is not installed, the admin notices from the compat checker compatibility checks are not triggered.
Getting Started
An admin notice saying that WooCommerce should be installed and activated should be displayed.
WooCommerce should be installed and activated
No admin notice is shown.
The issue is that the manage_woocommerce capability did not exist before WooCommerce was installed and per this code no admin notice is displayed: https://github.com/woocommerce/grow/blob/trunk/packages/php/compat-checker/src/Checks/CompatCheck.php#L68
manage_woocommerce
Describe the bug:
When WooCommerce is not installed, the admin notices from the compat checker compatibility checks are not triggered.
Steps to reproduce:
Getting Started
instructions here: https://github.com/woocommerce/grow/tree/trunk/packages/php/compat-checker#getting-startedExpected behavior:
An admin notice saying that
WooCommerce should be installed and activated
should be displayed.Actual behavior:
No admin notice is shown.
Additional details:
The issue is that the
manage_woocommerce
capability did not exist before WooCommerce was installed and per this code no admin notice is displayed: https://github.com/woocommerce/grow/blob/trunk/packages/php/compat-checker/src/Checks/CompatCheck.php#L68