PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/fields/class-field-recaptcha.php +6 -7 1.6.141.6.1 View file →
@@ -19,14 +19,13 @@
19 19 *
20 20 * @return void
21 21 */
22 22 public function render( $field_settings, $form_id ) {
23 - $settings = weforms_get_settings( 'recaptcha' );
24 - $is_invisible = false;
25 - $public_key = isset( $settings->key ) ? $settings->key : '';
26 - $type = isset( $settings->type ) ? $settings->type : '';
27 - $theme = isset( $field_settings['recaptcha_theme'] ) ? $field_settings['recaptcha_theme'] : 'light';
28 - $use_theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style';
23 + $settings = weforms_get_settings( 'recaptcha' );
24 + $is_invisible = false;
25 + $public_key = isset( $settings->key ) ? $settings->key : '';
26 + $type = isset( $settings->type ) ? $settings->type : '';
27 + $theme = isset( $field_settings['recaptcha_theme'] ) ? $field_settings['recaptcha_theme'] : 'light';
29 28 /** Recaptcha V3 start */
30 29 if( 'v3' == $type ) { ?>
31 30 <li <?php $this->print_list_attributes( $field_settings ); ?> >
32 31 <?php if ( ! $public_key ) {
@@ -32,9 +31,9 @@
32 31 <?php if ( ! $public_key ) {
33 32 esc_html_e( 'reCaptcha API key is missing.', 'weforms');
34 33 } else { ?>
35 34 <li <?php $this->print_list_attributes( $field_settings ); ?> >
36 - <div class="wpuf-fields <?php echo ' wpuf_'. esc_attr( $field_settings['name'] ).'_'. esc_attr( $form_id ); ?>" data-style="<?php echo esc_attr( $use_theme_css ); ?>">
35 + <div class="wpuf-fields <?php echo ' wpuf_'. esc_attr( $field_settings['name'] ).'_'. esc_attr( $form_id ); ?>">
37 36 <input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response">
38 37 <input type="hidden" name="g-action" id="g-action">
39 38 <script src="https://www.google.com/recaptcha/api.js?render=<?php echo esc_attr( $public_key );?>"> </script>
40 39 <script>