Version Description
- Bugfix: Jetpack synchronization was triggering a fatal error.
Download this release
Release Info
Developer | happyforms |
Plugin | Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms |
Version | 1.12.9 |
Comparing to | |
See all releases |
Code changes from version 1.12.8 to 1.12.9
- core/templates/parts/frontend-select.php +3 -1
- happyforms.php +2 -2
- inc/classes/class-happyforms.php +1 -1
- languages/happyforms.pot +2 -2
- readme.txt +7 -1
core/templates/parts/frontend-select.php
CHANGED
@@ -8,6 +8,8 @@
|
|
8 |
|
9 |
<?php
|
10 |
$options = happyforms_get_part_options( $part['options'], $part, $form );
|
|
|
|
|
11 |
$value = happyforms_get_part_value( $part, $form );
|
12 |
$default_label = ( '' !== $value ) ? $options[$value]['label'] : '';
|
13 |
$placeholder_text = $part['placeholder'];
|
@@ -19,7 +21,7 @@
|
|
19 |
<div class="happyforms-part__select-wrap">
|
20 |
<input type="hidden" name="<?php happyforms_the_part_name( $part, $form ); ?>" value="<?php echo $value; ?>" data-serialize />
|
21 |
|
22 |
-
<input id="<?php happyforms_the_part_id( $part, $form ); ?>" type="text" value="<?php echo $default_label; ?>" placeholder="<?php echo $placeholder_text; ?>" data-searchable="<?php echo
|
23 |
|
24 |
<?php happyforms_select( $options, $part, $form ); ?>
|
25 |
</div>
|
8 |
|
9 |
<?php
|
10 |
$options = happyforms_get_part_options( $part['options'], $part, $form );
|
11 |
+
$is_searchable = count( $options ) > 5;
|
12 |
+
$is_searchable = apply_filters( 'happyforms_is_dropdown_searchable', $is_searchable, $part, $form );
|
13 |
$value = happyforms_get_part_value( $part, $form );
|
14 |
$default_label = ( '' !== $value ) ? $options[$value]['label'] : '';
|
15 |
$placeholder_text = $part['placeholder'];
|
21 |
<div class="happyforms-part__select-wrap">
|
22 |
<input type="hidden" name="<?php happyforms_the_part_name( $part, $form ); ?>" value="<?php echo $value; ?>" data-serialize />
|
23 |
|
24 |
+
<input id="<?php happyforms_the_part_id( $part, $form ); ?>" type="text" value="<?php echo $default_label; ?>" placeholder="<?php echo $placeholder_text; ?>" data-searchable="<?php echo $is_searchable ? 'true' : 'false'; ?>" autocomplete="off" <?php happyforms_the_part_attributes( $part, $form ); ?> />
|
25 |
|
26 |
<?php happyforms_select( $options, $part, $form ); ?>
|
27 |
</div>
|
happyforms.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://happyforms.io
|
6 |
* Description: We're changin' WordPress forms.
|
7 |
* Author: Happyforms
|
8 |
-
* Version: 1.12.
|
9 |
* Author URI: https://happyforms.io
|
10 |
* Upgrade URI: https://happyforms.io/upgrade
|
11 |
*/
|
@@ -13,7 +13,7 @@
|
|
13 |
/**
|
14 |
* The current version of the plugin.
|
15 |
*/
|
16 |
-
define( 'HAPPYFORMS_VERSION', '1.12.
|
17 |
|
18 |
if ( ! function_exists( 'happyforms_plugin_file' ) ):
|
19 |
/**
|
5 |
* Plugin URI: https://happyforms.io
|
6 |
* Description: We're changin' WordPress forms.
|
7 |
* Author: Happyforms
|
8 |
+
* Version: 1.12.9
|
9 |
* Author URI: https://happyforms.io
|
10 |
* Upgrade URI: https://happyforms.io/upgrade
|
11 |
*/
|
13 |
/**
|
14 |
* The current version of the plugin.
|
15 |
*/
|
16 |
+
define( 'HAPPYFORMS_VERSION', '1.12.9' );
|
17 |
|
18 |
if ( ! function_exists( 'happyforms_plugin_file' ) ):
|
19 |
/**
|
inc/classes/class-happyforms.php
CHANGED
@@ -22,7 +22,7 @@ class HappyForms extends HappyForms_Core {
|
|
22 |
add_filter( 'happyforms_style_controls', array( $this, 'add_dummy_style_controls' ) );
|
23 |
add_action( 'parse_request', array( $this, 'parse_archive_request' ) );
|
24 |
add_action( 'admin_init', [ $this, 'register_modals' ] );
|
25 |
-
add_action( '
|
26 |
add_action( 'happyforms_modal_dismissed', [ $this, 'modal_dismissed' ] );
|
27 |
add_action( "wp_ajax_{$this->action_onboarding}", [ $this, 'ajax_action_onboarding' ] );
|
28 |
add_action( 'happyforms_form_after', [ $this, 'output_powered_by_form' ] );
|
22 |
add_filter( 'happyforms_style_controls', array( $this, 'add_dummy_style_controls' ) );
|
23 |
add_action( 'parse_request', array( $this, 'parse_archive_request' ) );
|
24 |
add_action( 'admin_init', [ $this, 'register_modals' ] );
|
25 |
+
add_action( 'admin_init', array( $this, 'redirect_to_forms_page' ) );
|
26 |
add_action( 'happyforms_modal_dismissed', [ $this, 'modal_dismissed' ] );
|
27 |
add_action( "wp_ajax_{$this->action_onboarding}", [ $this, 'ajax_action_onboarding' ] );
|
28 |
add_action( 'happyforms_form_after', [ $this, 'output_powered_by_form' ] );
|
languages/happyforms.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Happyforms (free) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Happyforms (free) 1.12.
|
6 |
"Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
|
7 |
-
"POT-Creation-Date: 2021-05-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Happyforms (free) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Happyforms (free) 1.12.9\n"
|
6 |
"Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
|
7 |
+
"POT-Creation-Date: 2021-05-26 13:48:42+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: contact form, contact form plugin, forms, form builder, custom form, intak
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.7.2
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 1.12.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -151,6 +151,9 @@ Aw, honestly, the thought that you're writing about our contact form builder is
|
|
151 |
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
154 |
= 1.12.8 =
|
155 |
* Improvement: Safer builder controls internal API.
|
156 |
|
@@ -811,6 +814,9 @@ Aw, honestly, the thought that you're writing about our contact form builder is
|
|
811 |
|
812 |
== Upgrade Notice ==
|
813 |
|
|
|
|
|
|
|
814 |
= 1.12.8 =
|
815 |
* Safer builder controls internal API.
|
816 |
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.7.2
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 1.12.9
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
151 |
|
152 |
== Changelog ==
|
153 |
|
154 |
+
= 1.12.9 =
|
155 |
+
* Bugfix: Jetpack synchronization was triggering a fatal error.
|
156 |
+
|
157 |
= 1.12.8 =
|
158 |
* Improvement: Safer builder controls internal API.
|
159 |
|
814 |
|
815 |
== Upgrade Notice ==
|
816 |
|
817 |
+
= 1.12.9 =
|
818 |
+
* Jetpack synchronization was triggering a fatal error.
|
819 |
+
|
820 |
= 1.12.8 =
|
821 |
* Safer builder controls internal API.
|
822 |
|