Bug with filter buttons
-
Hi, thank you for a great plugin!
I encountered a bug when trying to create filters, the buttons for adding filters/rows are not working. After debugging I found that the issue is caused by how the nonce is retrieved in:
woo-product-feed-pro/static/js/woosea_filters_rules.js:const nonce = $(‘#_wpnonce’).val();
Since there are multiple elements with the id #_wpnonce on the page (one for each form), the filter-form will pick up the wrong nonce from another form, causing the AJAX requests to fail. If you instead scope the selector to the specific form, like this:
const nonce = $(‘form#filters_rules #_wpnonce’).val();
it works correctly. I have made this change locally, but it will be overwritten on update. I’m using the legacy filter feature, if that is relevant.
Hopefully this can be fixed for the next update.
You must be logged in to reply to this topic.