newfold-labs / wp-module-ecommerce

Next-generation eCommerce Experience for WordPress sites at Newfold Digital.
GNU General Public License v2.0
9 stars 3 forks source link

fix: Ensure `check_url_match` function is defined only once #355

Open jweston491 opened 3 weeks ago

jweston491 commented 3 weeks ago

Proposed changes

I'm using Bluehost, and the Bluehost plugin relies on this package as a dependency. When registering a new user in our app's frontend, we get this error:

PHP Fatal error: Cannot redeclare NewfoldLabs\WP\Module\ECommerce\check_url_match() (previously declared in /mysitepath/public_html/wp-content/plugins/bluehost-wordpress-plugin/vendor/newfold-labs/wp-module-ecommerce/includes/ECommerce.php:699) in /mysitepath/public_html/wp-content/plugins/bluehost-wordpress-plugin/vendor/newfold-labs/wp-module-ecommerce/includes/ECommerce.php on line 699

So this PR aims to fix that.

Type of Change

Video

Checklist