Your plugin is breaking many plugins
-
Hi,
Please, update the line 447 of the file includes/xlwcty-public.php from:
if ( empty( filter_input( INPUT_GET, 'key' ) ) ) { wp_redirect( home_url() ); exit; }
To:
if ( empty( filter_input( INPUT_GET, 'key' ) ) && is_wc_endpoint_url( 'order-received' ) ) { wp_redirect( home_url() ); exit; }
Your code is checking in every endpoint created by 3rd party plugins if “key” is not defined, or if it is not empty, if not, it redirects to home. You need to add the check if the customer is on the thank you page.
Thank you
José Conti
- The topic ‘Your plugin is breaking many plugins’ is closed to new replies.