Plugin Directory

Changeset 2512016


Ignore:
Timestamp:
04/09/2021 09:03:12 AM (5 years ago)
Author:
vaptcha
Message:

测试版本,添加插件列表设置按钮

Location:
vaptcha/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vaptcha/trunk/VaptchaPlugin.php

    r2341371 r2512016  
    298298
    299299        add_filter('woocommerce_process_registration_errors', array($this, 'captcha_validate_woocommerce'),100,1);
     300        // 插件列表加入设置按钮
     301        add_filter('plugin_action_links', array($this, 'pluginSettingPageLinkButton'), 10, 2);
     302    }
     303
     304    /**
     305     * 插件列表添加设置按钮
     306     * @param $links
     307     * @param $file
     308     * @return mixed
     309     */
     310    public function pluginSettingPageLinkButton($links, $file)
     311    {
     312        if ($file === VAPTCHA_BASENAME) {
     313            $links[] = '<a href="admin.php?page=vaptcha">设置</a>';
     314        }
     315        return $links;
    300316    }
    301317
  • vaptcha/trunk/readme.txt

    r2356960 r2512016  
    44Tags: vaptcha, captcha, 验证, 验证码, 手势验证, 人机验证
    55Requires at least: 4.6.0
    6 Tested up to: 5.4.1
    7 Stable tag: 3.0
     6Tested up to: 5.7
     7Stable tag: 3.0.4
    88Requires PHP: 5.6.2
    99License: GPLv2 or later
  • vaptcha/trunk/vaptcha.php

    r2308330 r2512016  
    44Plugin URI: https://www.vaptcha.com
    55Description: VAPTCHA是”Variation Analysis - based Public Turing Test to Tell Computers and Humans Apart ”的简称,也叫手势验证。一种通过用户鼠标手势即可完成人机验证的图灵测试程序。VAPTCHA更加简单和安全,是目前传统验证码的最佳替代方案。VAPTCHA不仅大幅节省了用户在使用互联网服务时在人机验证上面的耗时,平均通过时间不超过1秒,同时也是目前世界上最不可能被破解的验证系统。
    6 Version: 3.0.3
     6Version: 3.0.4
    77Author: vaptcha
    88Text Domain: vaptcha
     
    2727    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2828*/
     29
     30defined('VAPTCHA_BASENAME')||define( 'VAPTCHA_BASENAME', plugin_basename(__FILE__));
     31defined('VAPTCHA_URL')||define( 'VAPTCHA_URL', plugins_url( 'vaptcha' ) );//update -----------------------------------------------------------------
     32defined('VAPTCHA_DIR')||define( 'VAPTCHA_DIR', VAPTCHA_BASENAME .'/js/' );//update -----------------------------------------------------------------
     33
    2934if ( !defined('ABSPATH') ) {
    3035   exit('No direct script access allowed');
Note: See TracChangeset for help on using the changeset viewer.