Plugin Directory

Changeset 149184


Ignore:
Timestamp:
08/26/2009 05:29:04 AM (17 years ago)
Author:
bingu
Message:

version 1.0.4

Location:
some-chinese-please/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • some-chinese-please/trunk/SomeChinesePlease.php

    r142694 r149184  
    55Description: 这是一个给用中文写作的blogger准备的防御spam的插件。
    66Author: 冰古
    7 Version: 1.0.3
     7Version: 1.0.4
    88Author URI: http://bingu.net
    99License: GNU General Public License 2.0 http://www.gnu.org/licenses/gpl.html
     
    3737}
    3838
     39/**
     40 * 只在单篇文章或页面中加入js提示
     41 */
     42function scp_front() {
     43    if (!is_singular()) return ;
     44    add_action('wp_footer', 'scp_js');
     45}
     46
    3947// 增加一个名为‘scp_message’的过滤器
    4048add_filter('scp_message', 'wp_filter_kses');
     
    5159else{
    5260    require 'scp-front.php';
    53     wp_enqueue_script('jquery');
    54     add_action('wp_footer', 'scp_js');
     61    add_action('wp', 'scp_front');
    5562    add_filter('preprocess_comment', 'scp_check_comment');
    5663}
  • some-chinese-please/trunk/readme.txt

    r142694 r149184  
    44Tags: comments, spam, Chinese
    55Requires at least: 2.6
    6 Tested up to: 2.8.3
    7 Stable tag: 1.0.3
     6Tested up to: 2.8.4
     7Stable tag: 1.0.4
    88
    99用中文写作的blog必备的防御spam插件
     
    1515
    1616== Changelog ==
     17
     18= 1.0.4 =
     19
     20* 清除多余的wp_enqueue_script('jquery');
     21* 仅在单篇文章或页面中加入js提示。
    1722
    1823= 1.0.3 =
  • some-chinese-please/trunk/scp-front.php

    r142694 r149184  
    3030        $options['message'] = apply_filters('display_smilies', $options['message']);
    3131        echo <<<JS
    32 <script type="text/javascript"><!--
     32<script type="text/javascript"><!--//--><![CDATA[//><!--
    3333    var cf = document.getElementById("commentform");
    3434    cf.innerHTML += "<p class='scp_message' style='color:#EB5050;clear:both;'>{$options['message']}</p>";
    35 //--></script>
     35//--><!]]></script>
    3636JS;
    3737    }
Note: See TracChangeset for help on using the changeset viewer.