-
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 variable that is globally accessible #2663 #2690
Remove variable that is globally accessible #2663 #2690
Conversation
Need to Create a blog post and inform all the developer about this ( That we are removing the second parameter from the do_action of |
We should not remove the parameter altogether since it would break functionality for any developer relying on it. We should instead follow WordPress core's lead by renaming the deprecated parameter and noting it in the DocBlock. /**
* Fires after validating donation form fields.
*
* Allow you to hook to donation form errors.
*
* @since 1.0
* @since 2.0.2 Second parameter deprecated in favor of $_POST.
*
* @param bool|array $valid_data Validated fields.
* @param array $deprecated Deprecated. Use $_POST instead.
*/
do_action( 'give_checkout_error_checks', $valid_data, $deprecated ); |
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.
Let's deprecate this in core like @kevinwhoffman describes in the comments rather than remove it entirely. I see that breaking folks who don't update add-ons.
Thanks, @kevinwhoffman ya I love the example. @DevinWalker @kevinwhoffman
|
@raftaar1191 no don't pass null that would basically be the same thing as removing it. Preserve the passed value so it doesn't break things. |
…ve-doaction-parameter Branch Update
Thanks @DevinWalker for you reply updated the PR |
Good catch on keeping |
Description
PR to fix #2663
How Has This Been Tested?
Manually Tested
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: