Changeset 1054103
- Timestamp:
- 12/25/2014 05:20:53 PM (11 years ago)
- Location:
- wp-spam-fighter
- Files:
-
- 1 added
- 8 edited
- 8 copied
-
tags/0.3 (added)
-
tags/0.3/bootstrap.php (copied) (copied from wp-spam-fighter/trunk/bootstrap.php) (1 diff)
-
tags/0.3/classes (copied) (copied from wp-spam-fighter/trunk/classes)
-
tags/0.3/classes/wp-spam-fighter.php (modified) (3 diffs)
-
tags/0.3/classes/wpsf-settings.php (modified) (3 diffs)
-
tags/0.3/css (copied) (copied from wp-spam-fighter/trunk/css)
-
tags/0.3/javascript (copied) (copied from wp-spam-fighter/trunk/javascript)
-
tags/0.3/languages (copied) (copied from wp-spam-fighter/trunk/languages)
-
tags/0.3/readme.txt (copied) (copied from wp-spam-fighter/trunk/readme.txt) (2 diffs)
-
tags/0.3/screenshot-1.png (copied) (copied from wp-spam-fighter/trunk/screenshot-1.png)
-
tags/0.3/views (copied) (copied from wp-spam-fighter/trunk/views)
-
tags/0.3/views/wpsf-settings/page-settings-fields.php (modified) (1 diff)
-
trunk/bootstrap.php (modified) (1 diff)
-
trunk/classes/wp-spam-fighter.php (modified) (3 diffs)
-
trunk/classes/wpsf-settings.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/wpsf-settings/page-settings-fields.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-spam-fighter/tags/0.3/bootstrap.php
r1054080 r1054103 4 4 Plugin URI: https://wordpress.org/plugins/wp-spam-fighter/ 5 5 Description: Comment spam prevention without moderation, captchas or questions 6 Version: 0. 2.16 Version: 0.3 7 7 Author: Henri Benoit 8 8 Author URI: http://benohead.com -
wp-spam-fighter/tags/0.3/classes/wp-spam-fighter.php
r997386 r1054103 28 28 * Plugin version number 29 29 */ 30 const VERSION = '0. 2.1';30 const VERSION = '0.3'; 31 31 32 32 /** … … 218 218 add_action('pre_comment_on_post', array($this, 'pre_comment_on_post')); 219 219 add_filter('pre_comment_approved', array($this, 'pre_comment_approved'), 10, 2); 220 add_action('comment_post', array($this, 'comment_post'), 10, 2); 221 220 222 221 223 add_action('register_form', array($this, 'register_form')); … … 415 417 } 416 418 419 function comment_post( $comment_ID, $approved ) { 420 if (isset($this->modules['WPSF_Settings']->settings['others']['delete']) && $this->modules['WPSF_Settings']->settings['others']['delete']) { 421 if ($approved == 'spam') { 422 wp_trash_comment( $comment_ID ); 423 } 424 } 425 } 426 417 427 /** 418 428 * Filter a comment’s approval status before it is set. -
wp-spam-fighter/tags/0.3/classes/wpsf-settings.php
r997386 r1054103 224 224 "trackbacks" => false, 225 225 "registration" => true, 226 "delete" => false, 226 227 ); 227 228 … … 419 420 $this->add_settings_field_others('wpsf_javascript', 'JavaScript human check'); 420 421 $this->add_settings_field_others('wpsf_registration', 'Also protect from spammer registration'); 422 $this->add_settings_field_others('wpsf_delete', 'Move Spam to Trash'); 421 423 422 424 // The settings container … … 566 568 $new_settings = $this->setting_default_if_not_set($new_settings, 'others', 'javascript', true); 567 569 $new_settings = $this->setting_default_if_not_set($new_settings, 'others', 'registration', true); 570 $new_settings = $this->setting_default_if_not_set($new_settings, 'others', 'delete', false); 568 571 569 572 return $new_settings; -
wp-spam-fighter/tags/0.3/readme.txt
r1054080 r1054103 4 4 Tags: anti spam plugin,anti spam protection,anti-spam,antispam,block,block spam,blog spam,bot,comment,comment spam,comment spam plugin,comment spam prevention,comments,comments spam,how to prevent spam,how to stop spam,mark as spam,plugin,plugin spam,plugins,plugins spam,prevent spam,security,spam,spam comment,spam comments,spam counter,spam filter,spam filter plugin,Spam Free,spam free wordpress,spam plugin,spam plugins,spam prevention,spam prevention wordpress,spam-bot,spam-bots,spambot,spamfree,spammer,spammers,spammy,stop spam,wordpress,wordpress spam block plugin 5 5 Requires at least: 3.5 6 Tested up to: 4. 07 Stable tag: 0. 2.16 Tested up to: 4.1 7 Stable tag: 0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 0.3 = 53 54 * Added option to delete spam comments instead of just marking them as spam. 55 52 56 = 0.2.1 = 53 57 -
wp-spam-fighter/tags/0.3/views/wpsf-settings/page-settings-fields.php
r984977 r1054103 72 72 id="wpsf_settings[others][registration]" 73 73 value="1" <?php checked(1, $settings['others']['registration']) ?>> 74 <?php 75 elseif ('wpsf_delete' == $field['label_for']) : ?> 76 <input type="checkbox" name="wpsf_settings[others][delete]" 77 id="wpsf_settings[others][delete]" 78 value="1" <?php if (isset($settings['others']['delete'])) checked(1, $settings['others']['delete']) ?>> 74 79 <?php endif; ?> -
wp-spam-fighter/trunk/bootstrap.php
r997386 r1054103 4 4 Plugin URI: https://wordpress.org/plugins/wp-spam-fighter/ 5 5 Description: Comment spam prevention without moderation, captchas or questions 6 Version: 0. 2.16 Version: 0.3 7 7 Author: Henri Benoit 8 8 Author URI: http://benohead.com -
wp-spam-fighter/trunk/classes/wp-spam-fighter.php
r997386 r1054103 28 28 * Plugin version number 29 29 */ 30 const VERSION = '0. 2.1';30 const VERSION = '0.3'; 31 31 32 32 /** … … 218 218 add_action('pre_comment_on_post', array($this, 'pre_comment_on_post')); 219 219 add_filter('pre_comment_approved', array($this, 'pre_comment_approved'), 10, 2); 220 add_action('comment_post', array($this, 'comment_post'), 10, 2); 221 220 222 221 223 add_action('register_form', array($this, 'register_form')); … … 415 417 } 416 418 419 function comment_post( $comment_ID, $approved ) { 420 if (isset($this->modules['WPSF_Settings']->settings['others']['delete']) && $this->modules['WPSF_Settings']->settings['others']['delete']) { 421 if ($approved == 'spam') { 422 wp_trash_comment( $comment_ID ); 423 } 424 } 425 } 426 417 427 /** 418 428 * Filter a comment’s approval status before it is set. -
wp-spam-fighter/trunk/classes/wpsf-settings.php
r997386 r1054103 224 224 "trackbacks" => false, 225 225 "registration" => true, 226 "delete" => false, 226 227 ); 227 228 … … 419 420 $this->add_settings_field_others('wpsf_javascript', 'JavaScript human check'); 420 421 $this->add_settings_field_others('wpsf_registration', 'Also protect from spammer registration'); 422 $this->add_settings_field_others('wpsf_delete', 'Move Spam to Trash'); 421 423 422 424 // The settings container … … 566 568 $new_settings = $this->setting_default_if_not_set($new_settings, 'others', 'javascript', true); 567 569 $new_settings = $this->setting_default_if_not_set($new_settings, 'others', 'registration', true); 570 $new_settings = $this->setting_default_if_not_set($new_settings, 'others', 'delete', false); 568 571 569 572 return $new_settings; -
wp-spam-fighter/trunk/readme.txt
r997386 r1054103 4 4 Tags: anti spam plugin,anti spam protection,anti-spam,antispam,block,block spam,blog spam,bot,comment,comment spam,comment spam plugin,comment spam prevention,comments,comments spam,how to prevent spam,how to stop spam,mark as spam,plugin,plugin spam,plugins,plugins spam,prevent spam,security,spam,spam comment,spam comments,spam counter,spam filter,spam filter plugin,Spam Free,spam free wordpress,spam plugin,spam plugins,spam prevention,spam prevention wordpress,spam-bot,spam-bots,spambot,spamfree,spammer,spammers,spammy,stop spam,wordpress,wordpress spam block plugin 5 5 Requires at least: 3.5 6 Tested up to: 4. 07 Stable tag: 0. 2.16 Tested up to: 4.1 7 Stable tag: 0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 0.3 = 53 54 * Added option to delete spam comments instead of just marking them as spam. 55 52 56 = 0.2.1 = 53 57 -
wp-spam-fighter/trunk/views/wpsf-settings/page-settings-fields.php
r984977 r1054103 72 72 id="wpsf_settings[others][registration]" 73 73 value="1" <?php checked(1, $settings['others']['registration']) ?>> 74 <?php 75 elseif ('wpsf_delete' == $field['label_for']) : ?> 76 <input type="checkbox" name="wpsf_settings[others][delete]" 77 id="wpsf_settings[others][delete]" 78 value="1" <?php if (isset($settings['others']['delete'])) checked(1, $settings['others']['delete']) ?>> 74 79 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.