Skip to content

Commit

Permalink
Deprecating the variable which is global accessible #2663
Browse files Browse the repository at this point in the history
  • Loading branch information
raftaar1191 committed Jan 24, 2018
1 parent 7d74917 commit 8b4e0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/process-donation.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function give_process_donation_form() {
* @param bool|array $valid_data Validate fields.
* @param array $deprecated Deprecated Since 2.0.2. Use $_POST instead.
*/
do_action( 'give_checkout_error_checks', $valid_data, $deprecated = null );
do_action( 'give_checkout_error_checks', $valid_data, $deprecated = $_POST );

// Process the login form.
if ( isset( $_POST['give_login_submit'] ) ) {
Expand Down

0 comments on commit 8b4e0b6

Please sign in to comment.