Changeset 2008481
- Timestamp:
- 01/08/2019 03:14:47 PM (7 years ago)
- Location:
- remove-comment-ips
- Files:
-
- 4 edited
-
tags/1.0.2/readme.txt (modified) (1 diff)
-
tags/1.0.2/remove-comment-ips.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/remove-comment-ips.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
remove-comment-ips/tags/1.0.2/readme.txt
r1834876 r2008481 3 3 Tags: comments, IP, privacy, GDPR 4 4 Requires at least: 4.6 5 Tested up to: 4.9.45 Tested up to: 5.0.2 6 6 Stable tag: 1.0.2 7 7 License: GPLv3 -
remove-comment-ips/tags/1.0.2/remove-comment-ips.php
r1550968 r2008481 2 2 /* 3 3 Plugin Name: Remove Comment IPs 4 Plugin URI: https://www. geeky.software/wordpress-plugins/remove-comment-ips/4 Plugin URI: https://www.ctrl.blog/entry/remove-comment-ip-wordpress-plugin 5 5 Description: Removes the IP address of comment authors after 2 months. 6 6 Version: 1.0.2 7 7 Author: Geeky Software 8 Author URI: https://www. geeky.software/8 Author URI: https://www.ctrl.blog/topic/wordpress 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 27 27 28 28 function remove_comment_ip_schedule_future_processing($comment_id, $comment_approved) { 29 // schedule processing in 60 days 30 wp_schedule_single_event(time() + 5184000, 'remove_comment_ip_handle', array($comment_id)); 29 $days = intval(apply_filters('remove_comment_ip_days_to_deletion', 60)); 30 if ($days < 0) 31 $days = 60; 32 elseif ($days == 0) 33 $seconds = 60; 34 else 35 $seconds = $days * 24 * 60 * 60; 36 wp_schedule_single_event(time() + $seconds, 'remove_comment_ip_handle', array($comment_id)); 31 37 } 32 38 add_action('comment_post', 'remove_comment_ip_schedule_future_processing', 10, 2); -
remove-comment-ips/trunk/readme.txt
r1834876 r2008481 3 3 Tags: comments, IP, privacy, GDPR 4 4 Requires at least: 4.6 5 Tested up to: 4.9.45 Tested up to: 5.0.2 6 6 Stable tag: 1.0.2 7 7 License: GPLv3 -
remove-comment-ips/trunk/remove-comment-ips.php
r1877838 r2008481 2 2 /* 3 3 Plugin Name: Remove Comment IPs 4 Plugin URI: https://www. geeky.software/wordpress-plugins/remove-comment-ips/4 Plugin URI: https://www.ctrl.blog/entry/remove-comment-ip-wordpress-plugin 5 5 Description: Removes the IP address of comment authors after 2 months. 6 6 Version: 1.0.2 7 7 Author: Geeky Software 8 Author URI: https://www. geeky.software/8 Author URI: https://www.ctrl.blog/topic/wordpress 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.