Fatal Error when URL contains wp-json
-
As title states. When a URl contains wp-json, eg domain.com/page-slug/wp-json there is a fatal error on /includes/class-wc-order-limit-rule.php on line 1690 because the URL WooCommerce thinks it’s a REST request but WordPress doesn’t.
If you can simple add a check toif ( function_exists( 'WC' ) ) {
toif ( function_exists( 'WC' ) && WC()->cart ) {that would solve the fatal error, and we can continue updating your plugin normally.
It would be great if you could update your core plugin with this small change.
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.