-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bulk action in legacy give-payment-history page broken #7158
Comments
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR. |
want a PR ? |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR. |
I have little time at the moment, but I plan to do a PR within 4 weeks. Please don't close the conversation. |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR. |
I see that the bug has already been fixed by someone else. |
User Story
As an admin, I want resend receipt for some donations.
Details
nonce checking fail with message "We are unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance" (wp_die)
Expected Behavior
The receipts must be resend and I to go back on the payments history list table
Steps to Reproduce
=> get error page with the message :
"We are unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance"
Acceptance Criteria
Suggested resolution
The bug seems to come from the fact that the $action passed to the nonce check in the next two calls is assumed to be "bulk-forms".
givewp/includes/admin/admin-actions.php
Line 147 in 179d6c4
And
givewp/includes/admin/payments/class-payments-table.php
Line 815 in 179d6c4
While its true value is
'bulk-' . sanitize_key(give_get_forms_label_plural())
Which is defined as follows:
WP_List_Table::display_tablenav
at https://github.com/WordPress/wordpress-develop/blob/87dfd5514b52aef456b7232b1959873e69e651da/src/wp-admin/includes/class-wp-list-table.php#L1673 with the codewp_nonce_field( 'bulk-' . $this->_args['plural'] );
$this->_args['plural']
in this context is defined byWP_List_Table::__construct
at https://github.com/WordPress/wordpress-develop/blob/87dfd5514b52aef456b7232b1959873e69e651da/src/wp -admin/includes/class-wp-list-table.php#L157 with codesanitize_key( $args['plural'] )
$args['plural']
is defined byGive_Payment_History_Table::__construct
atgivewp/includes/admin/payments/class-payments-table.php
Line 140 in 179d6c4
give_get_forms_label_plural()
is defined atgivewp/includes/post-types.php
Lines 299 to 302 in 179d6c4
give_get_default_form_labels()
is defined atgivewp/includes/post-types.php
Lines 270 to 277 in 179d6c4
The text was updated successfully, but these errors were encountered: