Plugin Directory

Changeset 2008481


Ignore:
Timestamp:
01/08/2019 03:14:47 PM (7 years ago)
Author:
geekysoft
Message:

Tested up to 5.0.2

Location:
remove-comment-ips
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • remove-comment-ips/tags/1.0.2/readme.txt

    r1834876 r2008481  
    33Tags: comments, IP, privacy, GDPR
    44Requires at least: 4.6
    5 Tested up to: 4.9.4
     5Tested up to: 5.0.2
    66Stable tag: 1.0.2
    77License: GPLv3
  • remove-comment-ips/tags/1.0.2/remove-comment-ips.php

    r1550968 r2008481  
    22/*
    33Plugin Name: Remove Comment IPs
    4 Plugin URI:  https://www.geeky.software/wordpress-plugins/remove-comment-ips/
     4Plugin URI:  https://www.ctrl.blog/entry/remove-comment-ip-wordpress-plugin
    55Description: Removes the IP address of comment authors after 2 months.
    66Version:     1.0.2
    77Author:      Geeky Software
    8 Author URI:  https://www.geeky.software/
     8Author URI:  https://www.ctrl.blog/topic/wordpress
    99License:     GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2727
    2828function 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));
    3137}
    3238add_action('comment_post', 'remove_comment_ip_schedule_future_processing', 10, 2);
  • remove-comment-ips/trunk/readme.txt

    r1834876 r2008481  
    33Tags: comments, IP, privacy, GDPR
    44Requires at least: 4.6
    5 Tested up to: 4.9.4
     5Tested up to: 5.0.2
    66Stable tag: 1.0.2
    77License: GPLv3
  • remove-comment-ips/trunk/remove-comment-ips.php

    r1877838 r2008481  
    22/*
    33Plugin Name: Remove Comment IPs
    4 Plugin URI:  https://www.geeky.software/wordpress-plugins/remove-comment-ips/
     4Plugin URI:  https://www.ctrl.blog/entry/remove-comment-ip-wordpress-plugin
    55Description: Removes the IP address of comment authors after 2 months.
    66Version:     1.0.2
    77Author:      Geeky Software
    8 Author URI:  https://www.geeky.software/
     8Author URI:  https://www.ctrl.blog/topic/wordpress
    99License:     GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.