Skip to content
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

Merged
merged 15 commits into from
Jan 29, 2018

Conversation

raftaar1191
Copy link
Contributor

@raftaar1191 raftaar1191 commented Jan 22, 2018

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:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

@ravinderk ravinderk changed the base branch from release/2.0.1 to release/2.0.2 January 22, 2018 14:48
@ravinderk ravinderk self-requested a review January 22, 2018 14:48
@raftaar1191 raftaar1191 changed the base branch from release/2.0.2 to release/2.0.1 January 22, 2018 21:16
@raftaar1191 raftaar1191 changed the base branch from release/2.0.1 to release/2.0.2 January 22, 2018 21:36
@raftaar1191 raftaar1191 changed the base branch from release/2.0.2 to release/2.0.1 January 22, 2018 21:38
@DevinWalker DevinWalker self-requested a review January 24, 2018 03:46
@raftaar1191 raftaar1191 changed the base branch from release/2.0.1 to release/2.0.2 January 24, 2018 05:17
*
* @return bool
*/
function give_validate_donation_amount( $valid_data, $data ) {
function give_validate_donation_amount( $valid_data ) {
$data = $_POST;
Copy link
Collaborator

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

Copy link
Contributor Author

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

  1. https://github.com/WordImpress/Give/blob/release/2.0.2/includes/process-donation.php#L1188

  2. 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

@ravinderk ravinderk merged commit 57f4a47 into impress-org:release/2.0.2 Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants