fix: PHP errors and clean up error_log statements
- Fixed redirect_wc_pages_to_spa: added spa_mode check (only redirect when 'full') - Fixed PHP fatal error: use get_queried_object() instead of global $product - Removed all error_log debug statements from codebase - Fixed broken syntax in PaymentGatewaysProvider.php after error_log removal
This commit is contained in:
@@ -454,7 +454,6 @@ class ShippingController extends WP_REST_Controller {
|
||||
);
|
||||
|
||||
} catch ( \Exception $e ) {
|
||||
error_log( sprintf( '[WooNooW] Toggle exception: %s', $e->getMessage() ) );
|
||||
return new WP_REST_Response(
|
||||
array(
|
||||
'error' => 'toggle_failed',
|
||||
|
||||
Reference in New Issue
Block a user