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

validate IP address in pmpro_get_ip #3113

Merged

Conversation

andrewlimaza
Copy link
Contributor

  • ENHANCEMENT: Validate the user's IP address using filter_var and check if it's IPV4 or IPV6 within the pmpro_get_ip function.

All Submissions:

* ENHANCEMENT: Validate the user's IP address using filter_var and check if it's IPV4 or IPV6.
@andrewlimaza
Copy link
Contributor Author

This is mainly for the Local Pricing Add On, and ensuring that the data returned from this method is an actual IP address. It helps us validate the returned data without extra checks when calling the method.

@dparker1005 dparker1005 merged commit 05e3373 into strangerstudios:dev Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants