Plugin Directory

Changeset 2071916


Ignore:
Timestamp:
04/21/2019 04:55:50 AM (7 years ago)
Author:
poku
Message:

1.1.0 Release

Location:
block-spam-comment
Files:
9 added
3 edited

Legend:

Unmodified
Added
Removed
  • block-spam-comment/trunk/Block-Spam-Comment.php

    r1983874 r2071916  
    2424
    2525        //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'])*/) {
    2727            $error_message = bsc_update_log(1, $post_id);
    2828            wp_die($error_message);
     
    3333            wp_die($error_message);
    3434        }
    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' ) ) {
    3737            $error_message = bsc_update_log(3, $post_id);
    3838            wp_die($error_message);
    39         }
     39        }*/
    4040        //文字が入力されていた場合
    4141        if (!empty($_POST['bsc_spam_check_'.$name_key.'_3'])) {
     
    6868        'agent' => mb_strimwidth(htmlentities($_SERVER['HTTP_USER_AGENT']), 0, 200, '…', 'UTF-8'),
    6969        'cause' => $cause,
    70         'post' => $post_id
     70        'post' => $post_id,
     71        'comment' => mb_strimwidth(htmlentities($_POST['comment']), 0, 200, '…', 'UTF-8')
    7172    );
    7273    //多い場合は削除
     
    101102        echo '<p class="bsc_spam_check" style="display:none">';
    102103        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="">';
    104105        echo '<input type="text" name="bsc_spam_check_'.$name_key.'_3" value="">';
    105106        echo '</p>';
     
    119120    echo '<script async defer>';
    120121    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').'"};';
    122123    echo '</script>';
    123124}
  • block-spam-comment/trunk/license.txt

    r1965079 r2071916  
    1 Copyright 2018 poku (email : pokudiary@gmail.com)
     1Copyright 2019 poku (email : pokudiary@gmail.com)
    22
    33This program is free software; you can redistribute it and/or modify
  • block-spam-comment/trunk/readme.txt

    r1983874 r2071916  
    44Tags: comment,comments,spam,antispam,anti-spam
    55Requires at least: 4.7
    6 Tested up to: 5.0
    7 Stable tag: 1.0.3
     6Tested up to: 5.1
     7Stable tag: 1.1.0
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434== Changelog ==
    3535
     361.1.0
     37Improvement in some functions.
     38
     391.0.3
     40Improvement in function.
     41
    36421.0.2
    3743Bug fixed.
Note: See TracChangeset for help on using the changeset viewer.