Changeset 2071916
- Timestamp:
- 04/21/2019 04:55:50 AM (7 years ago)
- Location:
- block-spam-comment
- Files:
-
- 9 added
- 3 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/Block-Spam-Comment.php (added)
-
tags/1.1.0/languages (added)
-
tags/1.1.0/languages/Block-Spam-Comment-ja.mo (added)
-
tags/1.1.0/languages/Block-Spam-Comment-ja.po (added)
-
tags/1.1.0/languages/Block-Spam-Comment.pot (added)
-
tags/1.1.0/license.txt (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/uninstall.php (added)
-
trunk/Block-Spam-Comment.php (modified) (5 diffs)
-
trunk/license.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
block-spam-comment/trunk/Block-Spam-Comment.php
r1983874 r2071916 24 24 25 25 //post されてない場合 26 if (empty($_POST['bsc_spam_check_'.$name_key.'_1']) || empty($_POST['bsc_spam_check_'.$name_key.'_2'])) {26 if (empty($_POST['bsc_spam_check_'.$name_key.'_1']) /*|| empty($_POST['bsc_spam_check_'.$name_key.'_2'])*/) { 27 27 $error_message = bsc_update_log(1, $post_id); 28 28 wp_die($error_message); … … 33 33 wp_die($error_message); 34 34 } 35 //アクションがない場合 36 if (!wp_verify_nonce( $_POST['bsc_spam_check_'.$name_key.'_2'], 'bsc_check' ) ) {35 //アクションがない場合(停止中) 36 /*if (!wp_verify_nonce( $_POST['bsc_spam_check_'.$name_key.'_2'], 'bsc_check' ) ) { 37 37 $error_message = bsc_update_log(3, $post_id); 38 38 wp_die($error_message); 39 } 39 }*/ 40 40 //文字が入力されていた場合 41 41 if (!empty($_POST['bsc_spam_check_'.$name_key.'_3'])) { … … 68 68 'agent' => mb_strimwidth(htmlentities($_SERVER['HTTP_USER_AGENT']), 0, 200, '…', 'UTF-8'), 69 69 'cause' => $cause, 70 'post' => $post_id 70 'post' => $post_id, 71 'comment' => mb_strimwidth(htmlentities($_POST['comment']), 0, 200, '…', 'UTF-8') 71 72 ); 72 73 //多い場合は削除 … … 101 102 echo '<p class="bsc_spam_check" style="display:none">'; 102 103 echo '<input type="text" id="bsc_spam_check_1" name="bsc_spam_check_'.$name_key.'_1" value="">'; 103 echo '<input type="text" id="bsc_spam_check_2" name="bsc_spam_check_'.$name_key.'_2" value="">';104 //echo '<input type="text" id="bsc_spam_check_2" name="bsc_spam_check_'.$name_key.'_2" value="">'; 104 105 echo '<input type="text" name="bsc_spam_check_'.$name_key.'_3" value="">'; 105 106 echo '</p>'; … … 119 120 echo '<script async defer>'; 120 121 echo 'var bsc_spam=function(){document.getElementById("bsc_spam_check_1").value = "'.get_option('bsc_key').'";};setTimeout(bsc_spam, 10000);'; 121 echo 'document.getElementById("commentform").onsubmit=function(){document.getElementById("bsc_spam_check_2").value="'.wp_create_nonce('bsc_check').'"};';122 //echo 'document.getElementById("commentform").onsubmit=function(){document.getElementById("bsc_spam_check_2").value="'.wp_create_nonce('bsc_check').'"};'; 122 123 echo '</script>'; 123 124 } -
block-spam-comment/trunk/license.txt
r1965079 r2071916 1 Copyright 201 8poku (email : pokudiary@gmail.com)1 Copyright 2019 poku (email : pokudiary@gmail.com) 2 2 3 3 This program is free software; you can redistribute it and/or modify -
block-spam-comment/trunk/readme.txt
r1983874 r2071916 4 4 Tags: comment,comments,spam,antispam,anti-spam 5 5 Requires at least: 4.7 6 Tested up to: 5. 07 Stable tag: 1. 0.36 Tested up to: 5.1 7 Stable tag: 1.1.0 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 == Changelog == 35 35 36 1.1.0 37 Improvement in some functions. 38 39 1.0.3 40 Improvement in function. 41 36 42 1.0.2 37 43 Bug fixed.
Note: See TracChangeset
for help on using the changeset viewer.