woocommerce / woocommerce-google-analytics-integration

WordPress plugin: Provides the integration between WooCommerce and Google Analytics.
http://wordpress.org/plugins/woocommerce-google-analytics-integration/
172 stars 69 forks source link

Add require plugins header #402

Closed puntope closed 7 months ago

puntope commented 7 months ago

Changes proposed in this Pull Request:

Closes #401

This PR enables the new Requires Plugins header available in WP 6.5

See --> https://make.wordpress.org/core/2024/03/05/introducing-plugin-dependencies-in-wordpress-6-5/

Screenshots:

Screenshot 2024-03-15 at 10 53 45 Screenshot 2024-03-15 at 10 53 35

Detailed test instructions:

  1. Install WP 6.5 (RC2) --> https://wordpress.org/wordpress-6.5-RC2.zip
  2. Install Woo Commerce and the extension (checkout this PR)
  3. If WC is activated, the extension can be activated
  4. If WC is not activated, extension button for activate is disabled. A notice "This plugin cannot be activated because required plugins are missing or inactive." is shown.
  5. If extension is activated and WC is activated. WC cannot be deactivated. And it shows info like "Required by: Google Analytics for WooCommerce"

Additional details:

Changelog entry

Tweak - Add WP 6.5 Require plugins header