-
Notifications
You must be signed in to change notification settings - Fork 191
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
Remove Parameter the unwanted parameter #2663 #2687
Remove Parameter the unwanted parameter #2663 #2687
Conversation
8b4e0b6
to
bd448c5
Compare
…es-2663 Branch Update
* | ||
* @return bool | ||
*/ | ||
function give_validate_donation_amount( $valid_data, $data ) { | ||
function give_validate_donation_amount( $valid_data ) { | ||
$data = $_POST; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raftaar1191 Do not need to create $data
param please use $_POST
directly with validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we are updating the $data and then adding that to DB
That why I am adding $_POST value to $data variable
-
https://github.com/WordImpress/Give/blob/release/2.0.2/includes/process-donation.php#L1188
-
https://github.com/WordImpress/Give/blob/release/2.0.2/includes/process-donation.php#L1205
I can update this function but I don't think it's needed. Let me know if you want to to updated it
…es-2663 Branch Update
Description
PR to fix issues #2663
How Has This Been Tested?
Manual tested
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: