aaroneaton / better-yourls

Source code for the Better YOURLS WordPress plugin
21 stars 6 forks source link

EDD and GiveWP both throwing users to a wp_die('Security Error') page #17

Open Benunc opened 7 years ago

Benunc commented 7 years ago

Steps to replicate:

  1. install EDD or GIveWP
  2. create a test donation (in Give, use the "Test Donation" Payment Gateway at Donations--> Settings --> Payment Gateways (tab))
  3. On completing the donation, it will go through, but the donor is thrown to a page that says "Security Error"

I had a report of it with two recent EDD purchases, and I just replicated in a live environment.

Possible solution.

Give creates a hidden post type of "give_payment" used to show transactions. Better Yourls needs to be able to exclude those hidden post types.

I've deactivated for now, but look forward to helping find a solution. I still have it active in a staging environment for testing.

ChrisWiegman commented 7 years ago

There is a filter, better_yourls_post_types, which might be what you're looking for at the moment. It simply takes an array of what post types you want to use it on. If it is empty it assumes all of them. This would be a temporary solution as I implement a fix that doesn't include hidden post types.