Plugin Directory

Changeset 2741200


Ignore:
Timestamp:
06/12/2022 05:47:18 PM (4 years ago)
Author:
webcource
Message:

readme.txt

Location:
wc-captcha/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wc-captcha/trunk/includes/class-core.php

    r2741199 r2741200  
    3131
    3232        add_action('custom_form_hook', array(&$this, 'add_captcha_form'));
    33         add_shortcode('wccaptcha', [&$this, 'custom_form_captcha_func']);
     33        add_shortcode('wpcaptcha_wc', [&$this, 'custom_form_captcha_func']);
    3434    }
    3535
  • wc-captcha/trunk/includes/integrations/contact-form-7.php

    r2741198 r2741200  
    11<?php
    22/**
    3  * A module for [wcccf7]
     3 * A module for [wpcaptcha]
    44 */
    55
     
    88
    99function wpcf7_add_shortcode_wpcaptcha() {
    10     wpcf7_add_form_tag( 'wcccf7', 'wpcf7_wpcaptcha_shortcode_handler', true );
     10    wpcf7_add_form_tag( 'wpcaptcha', 'wpcf7_wpcaptcha_shortcode_handler', true );
    1111}
    1212
     
    120120        return;
    121121
    122     $has_tags = (bool) $contact_form->form_scan_shortcode( array( 'type' => array( 'wcccf7' ) ) );
     122    $has_tags = (bool) $contact_form->form_scan_shortcode( array( 'type' => array( 'wpcaptcha' ) ) );
    123123
    124124    if ( ! $has_tags )
     
    133133        return;
    134134
    135     wpcf7_add_tag_generator( 'wcccf7', __( 'WC Captcha', 'wc-captcha' ), 'wpcf7-wcccf7', 'wpcf7_tg_pane_wpcaptcha' );
     135    wpcf7_add_tag_generator( 'wpcaptcha', __( 'WC Captcha', 'wc-captcha' ), 'wpcf7-wpcaptcha', 'wpcf7_tg_pane_wpcaptcha' );
    136136}
    137137
     
    144144                    <tr>
    145145                        <th scope="row">
    146                             <label for="tag-generator-panel-wcccf7-name">' . esc_html__( 'Name', 'contact-form-7' ) . '</label>
     146                            <label for="tag-generator-panel-wpcaptcha-name">' . esc_html__( 'Name', 'contact-form-7' ) . '</label>
    147147                        </th>
    148148                        <td>
    149                             <input type="text" name="name" class="tg-name oneline" id="tag-generator-panel-wcccf7-name" />
     149                            <input type="text" name="name" class="tg-name oneline" id="tag-generator-panel-wpcaptcha-name" />
    150150                        </td>
    151151                    </tr>
    152152                    <tr>
    153153                        <th scope="row">
    154                             <label for="tag-generator-panel-wcccf7-id">' . esc_html__( 'Id attribute', 'contact-form-7' ) . '</label>
     154                            <label for="tag-generator-panel-wpcaptcha-id">' . esc_html__( 'Id attribute', 'contact-form-7' ) . '</label>
    155155                        </th>
    156156                        <td>
    157                             <input type="text" name="id" class="idvalue oneline option" id="tag-generator-panel-wcccf7-id" />
     157                            <input type="text" name="id" class="idvalue oneline option" id="tag-generator-panel-wpcaptcha-id" />
    158158                        </td>
    159159                    </tr>
    160160                    <tr>
    161161                        <th scope="row">
    162                             <label for="tag-generator-panel-wcccf7-class">' . esc_html__( 'Class attribute', 'contact-form-7' ) . '</label>
     162                            <label for="tag-generator-panel-wpcaptcha-class">' . esc_html__( 'Class attribute', 'contact-form-7' ) . '</label>
    163163                        </th>
    164164                        <td>
    165                             <input type="text" name="class" class="classvalue oneline option" id="tag-generator-panel-wcccf7-class" />
     165                            <input type="text" name="class" class="classvalue oneline option" id="tag-generator-panel-wpcaptcha-class" />
    166166                        </td>
    167167                    </tr>
     
    171171    </div>
    172172    <div class="insert-box">
    173         <input type="text" name="wcccf7" class="tag code" readonly="readonly" onfocus="this.select();">
     173        <input type="text" name="wpcaptcha" class="tag code" readonly="readonly" onfocus="this.select();">
    174174        <div class="submitbox">
    175175            <input type="button" class="button button-primary insert-tag" value="' . esc_attr__( 'Insert Tag', 'contact-form-7' ) . '">
  • wc-captcha/trunk/readme.txt

    r2741198 r2741200  
    66Requires PHP: 7.0
    77Tested up to: 6.0
    8 Stable tag: 1.3.2
     8Stable tag: 1.3.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • wc-captcha/trunk/wc-captcha.php

    r2741198 r2741200  
    33Plugin Name: WC Captcha
    44Description: WC Captcha is the <strong>Most Powerful Mathematical CAPTCHA for WordPress</strong> that integrates into Login, Registration, Reset Password/Lost Password, Comments Form, Contact Form 7, bbPress, All forms and also Woocommerce forms.
    5 Version: 1.3.2
     5Version: 1.3.1
    66Author: WebCource
    77Author URI: http://www.webcource.com/rimuc/
Note: See TracChangeset for help on using the changeset viewer.