Closed naokomc closed 7 months ago
I wasn't able to reproduce this with a new pledge, but can see it failing for the example ones - still investigating.
@pkevan - Thank you for testing. Would it be possible for any of the submitted content (or lack of something) to trigger the "removed" message?
Would it be possible for any of the submitted content (or lack of something) to trigger the "removed" message?
Possible - I didn't get much further in testing it, but will continue and update with any findings.
Seems like the initial confirmation step isn't being triggered with the current code for some reason - it hasn't changed in the very long time, so i'm guessing it might be some incompatibility in core WP, or something that has changed with shortcode handling.
So it seems like it's breaking at the point of sending the confirmation email: https://github.com/WordPress/five-for-the-future/blob/production/plugins/wporg-5ftf/includes/pledge.php#L359-L364
Instead of grabbing the current post id of the form, it grabs the pledge id, and sends that e.g.
both p
and pledge_id
are the same.
Fixed has been released on the site, so should be working again.
A new pledging organization reported this issue, and I tested it to confirm the same behavior.
Steps to Reproduce
The newly created Organization Pledge CPTs are in Draft status. These are examples of failed entries:
This entry also had the same issue, but I manually published it and now it's all fine. The email sent via the "Edit Pledge" link on the front page works. https://wordpress.org/five-for-the-future/wp-admin/post.php?post=37263&action=edit
Expected Behavior
Clicking the email in the first email should enable the organization admin to confirm the email address.