Changeset 2741200
- Timestamp:
- 06/12/2022 05:47:18 PM (4 years ago)
- Location:
- wc-captcha/trunk
- Files:
-
- 4 edited
-
includes/class-core.php (modified) (1 diff)
-
includes/integrations/contact-form-7.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
-
wc-captcha.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-captcha/trunk/includes/class-core.php
r2741199 r2741200 31 31 32 32 add_action('custom_form_hook', array(&$this, 'add_captcha_form')); 33 add_shortcode('w ccaptcha', [&$this, 'custom_form_captcha_func']);33 add_shortcode('wpcaptcha_wc', [&$this, 'custom_form_captcha_func']); 34 34 } 35 35 -
wc-captcha/trunk/includes/integrations/contact-form-7.php
r2741198 r2741200 1 1 <?php 2 2 /** 3 * A module for [w cccf7]3 * A module for [wpcaptcha] 4 4 */ 5 5 … … 8 8 9 9 function wpcf7_add_shortcode_wpcaptcha() { 10 wpcf7_add_form_tag( 'w cccf7', 'wpcf7_wpcaptcha_shortcode_handler', true );10 wpcf7_add_form_tag( 'wpcaptcha', 'wpcf7_wpcaptcha_shortcode_handler', true ); 11 11 } 12 12 … … 120 120 return; 121 121 122 $has_tags = (bool) $contact_form->form_scan_shortcode( array( 'type' => array( 'w cccf7' ) ) );122 $has_tags = (bool) $contact_form->form_scan_shortcode( array( 'type' => array( 'wpcaptcha' ) ) ); 123 123 124 124 if ( ! $has_tags ) … … 133 133 return; 134 134 135 wpcf7_add_tag_generator( 'w cccf7', __( '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' ); 136 136 } 137 137 … … 144 144 <tr> 145 145 <th scope="row"> 146 <label for="tag-generator-panel-w cccf7-name">' . esc_html__( 'Name', 'contact-form-7' ) . '</label>146 <label for="tag-generator-panel-wpcaptcha-name">' . esc_html__( 'Name', 'contact-form-7' ) . '</label> 147 147 </th> 148 148 <td> 149 <input type="text" name="name" class="tg-name oneline" id="tag-generator-panel-w cccf7-name" />149 <input type="text" name="name" class="tg-name oneline" id="tag-generator-panel-wpcaptcha-name" /> 150 150 </td> 151 151 </tr> 152 152 <tr> 153 153 <th scope="row"> 154 <label for="tag-generator-panel-w cccf7-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> 155 155 </th> 156 156 <td> 157 <input type="text" name="id" class="idvalue oneline option" id="tag-generator-panel-w cccf7-id" />157 <input type="text" name="id" class="idvalue oneline option" id="tag-generator-panel-wpcaptcha-id" /> 158 158 </td> 159 159 </tr> 160 160 <tr> 161 161 <th scope="row"> 162 <label for="tag-generator-panel-w cccf7-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> 163 163 </th> 164 164 <td> 165 <input type="text" name="class" class="classvalue oneline option" id="tag-generator-panel-w cccf7-class" />165 <input type="text" name="class" class="classvalue oneline option" id="tag-generator-panel-wpcaptcha-class" /> 166 166 </td> 167 167 </tr> … … 171 171 </div> 172 172 <div class="insert-box"> 173 <input type="text" name="w cccf7" class="tag code" readonly="readonly" onfocus="this.select();">173 <input type="text" name="wpcaptcha" class="tag code" readonly="readonly" onfocus="this.select();"> 174 174 <div class="submitbox"> 175 175 <input type="button" class="button button-primary insert-tag" value="' . esc_attr__( 'Insert Tag', 'contact-form-7' ) . '"> -
wc-captcha/trunk/readme.txt
r2741198 r2741200 6 6 Requires PHP: 7.0 7 7 Tested up to: 6.0 8 Stable tag: 1.3. 28 Stable tag: 1.3.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
wc-captcha/trunk/wc-captcha.php
r2741198 r2741200 3 3 Plugin Name: WC Captcha 4 4 Description: 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. 25 Version: 1.3.1 6 6 Author: WebCource 7 7 Author URI: http://www.webcource.com/rimuc/
Note: See TracChangeset
for help on using the changeset viewer.