Unverified Commit bb1cecfb authored by Lester Chan's avatar Lester Chan
Browse files

Use wp_privacy_anonymize_ip() and hence we need at least WP 4.9.6

parent 7c5149ac
......@@ -2,9 +2,9 @@
Contributors: GamerZ
Donate link: https://lesterchan.net/site/donation/
Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
Requires at least: 4.0
Requires at least: 4.9.6
Tested up to: 4.9
Stable tag: 2.73.8
Stable tag: 2.74
Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
......@@ -27,6 +27,9 @@ WP-Polls is extremely customizable via templates and css styles and there are to
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
## Changelog
### Version 2.74
* NEW: Anonymize IP and Hostname to make it GDPR compliance
### Version 2.73.8
* FIXED: Bug fixes and stricter type checking
......
......@@ -3,7 +3,7 @@
Plugin Name: WP-Polls
Plugin URI: https://lesterchan.net/portfolio/programming/php/
Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
Version: 2.73.8
Version: 2.74
Author: Lester 'GaMerZ' Chan
Author URI: https://lesterchan.net
Text Domain: wp-polls
......@@ -11,7 +11,7 @@ Text Domain: wp-polls
/*
Copyright 2017 Lester Chan (email : lesterchan@gmail.com)
Copyright 2018 Lester Chan (email : lesterchan@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -29,7 +29,7 @@ Text Domain: wp-polls
*/
### Version
define( 'WP_POLLS_VERSION', '2.73.8' );
define( 'WP_POLLS_VERSION', '2.74' );
### Create Text Domain For Translations
......@@ -734,12 +734,7 @@ if(!function_exists('get_ipaddress')) {
}
}
function poll_get_ipaddress() {
$ip = get_ipaddress();
if ( ! empty( $ip ) ) {
return substr( $ip, 0, strrpos( $ip, '.' ) ) . '.xxx';
}
return $ip;
return wp_privacy_anonymize_ip( get_ipaddress() );
}
function poll_get_hostname() {
$hostname = gethostbyaddr( get_ipaddress() );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment