Version Description
- 30-11-2021 =
- Fix - Style Customizer Radio/Checkbox design not working.
- Enhancement - Object Caching plugin compatibility.
Download this release
Release Info
Developer | everestforms |
Plugin | Everest Forms – Easy Contact Form and Form Builder |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8.0.1 to 1.8.1
- everest-forms.php +1 -1
- includes/class-everest-forms.php +1 -1
- includes/class-evf-form-handler.php +1 -16
- includes/class-evf-form-task.php +9 -1
- includes/evf-entry-functions.php +8 -25
- includes/fields/class-evf-field-checkbox.php +1 -1
- includes/fields/class-evf-field-radio.php +1 -1
- languages/everest-forms.pot +2 -2
- readme.txt +5 -1
everest-forms.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Everest Forms
|
4 |
* Plugin URI: https://wpeverest.com/wordpress-plugins/everest-forms/
|
5 |
* Description: Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
|
6 |
-
* Version: 1.8.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: everest-forms
|
3 |
* Plugin Name: Everest Forms
|
4 |
* Plugin URI: https://wpeverest.com/wordpress-plugins/everest-forms/
|
5 |
* Description: Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
|
6 |
+
* Version: 1.8.1
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: everest-forms
|
includes/class-everest-forms.php
CHANGED
@@ -21,7 +21,7 @@ final class EverestForms {
|
|
21 |
*
|
22 |
* @var string
|
23 |
*/
|
24 |
-
public $version = '1.8.
|
25 |
|
26 |
/**
|
27 |
* The single instance of the class.
|
21 |
*
|
22 |
* @var string
|
23 |
*/
|
24 |
+
public $version = '1.8.1';
|
25 |
|
26 |
/**
|
27 |
* The single instance of the class.
|
includes/class-evf-form-handler.php
CHANGED
@@ -40,12 +40,7 @@ class EVF_Form_Handler {
|
|
40 |
return false;
|
41 |
}
|
42 |
|
43 |
-
|
44 |
-
$the_post = wp_cache_get( $id, 'forms' );
|
45 |
-
if ( false === $the_post || empty( $the_post->post_content ) ) {
|
46 |
-
$the_post = get_post( absint( $id ) );
|
47 |
-
wp_cache_add( $id, $the_post, 'forms' );
|
48 |
-
}
|
49 |
|
50 |
if ( $the_post && 'everest_form' === $the_post->post_type ) {
|
51 |
$forms = empty( $args['content_only'] ) ? $the_post : evf_decode( $the_post->post_content );
|
@@ -115,14 +110,6 @@ class EVF_Form_Handler {
|
|
115 |
// For cache lets unset the cap args.
|
116 |
unset( $args['cap'] );
|
117 |
|
118 |
-
// Check for cache.
|
119 |
-
$cache_key = EVF_Cache_Helper::get_cache_prefix( 'forms' ) . 'get_multiple_forms_' . md5( wp_json_encode( $args ) );
|
120 |
-
$cache_value = wp_cache_get( $cache_key, 'form_get_multiple_results' );
|
121 |
-
|
122 |
-
if ( $cache_value ) {
|
123 |
-
return $cache_value;
|
124 |
-
}
|
125 |
-
|
126 |
// Fetch posts.
|
127 |
$forms = get_posts( $args );
|
128 |
|
@@ -130,8 +117,6 @@ class EVF_Form_Handler {
|
|
130 |
$forms = array_map( array( $this, 'prepare_post_content' ), $forms );
|
131 |
}
|
132 |
|
133 |
-
wp_cache_set( $cache_key, $forms, 'form_get_multiple_results' );
|
134 |
-
|
135 |
return $forms;
|
136 |
}
|
137 |
|
40 |
return false;
|
41 |
}
|
42 |
|
43 |
+
$the_post = get_post( absint( $id ) );
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
if ( $the_post && 'everest_form' === $the_post->post_type ) {
|
46 |
$forms = empty( $args['content_only'] ) ? $the_post : evf_decode( $the_post->post_content );
|
110 |
// For cache lets unset the cap args.
|
111 |
unset( $args['cap'] );
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
// Fetch posts.
|
114 |
$forms = get_posts( $args );
|
115 |
|
117 |
$forms = array_map( array( $this, 'prepare_post_content' ), $forms );
|
118 |
}
|
119 |
|
|
|
|
|
120 |
return $forms;
|
121 |
}
|
122 |
|
includes/class-evf-form-task.php
CHANGED
@@ -528,7 +528,7 @@ class EVF_Form_Task {
|
|
528 |
if ( ! empty( $submission_redirect_process ) ) {
|
529 |
$settings['redirect_to'] = $submission_redirect_process['redirect_to'];
|
530 |
$settings['external_url'] = $submission_redirect_process['external_url'];
|
531 |
-
$settings['custom_page']
|
532 |
}
|
533 |
|
534 |
if ( isset( $settings['redirect_to'] ) && 'custom_page' === $settings['redirect_to'] ) {
|
@@ -800,6 +800,14 @@ class EVF_Form_Task {
|
|
800 |
|
801 |
$this->entry_id = $entry_id;
|
802 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
803 |
do_action( 'everest_forms_complete_entry_save', $entry_id, $fields, $entry, $form_id, $form_data );
|
804 |
|
805 |
return $this->entry_id;
|
528 |
if ( ! empty( $submission_redirect_process ) ) {
|
529 |
$settings['redirect_to'] = $submission_redirect_process['redirect_to'];
|
530 |
$settings['external_url'] = $submission_redirect_process['external_url'];
|
531 |
+
$settings['custom_page'] = $submission_redirect_process['custom_page'];
|
532 |
}
|
533 |
|
534 |
if ( isset( $settings['redirect_to'] ) && 'custom_page' === $settings['redirect_to'] ) {
|
800 |
|
801 |
$this->entry_id = $entry_id;
|
802 |
|
803 |
+
// Removing Entries Cache.
|
804 |
+
wp_cache_delete( $entry_id, 'evf-entry' );
|
805 |
+
wp_cache_delete( $entry_id, 'evf-entrymeta' );
|
806 |
+
wp_cache_delete( $form_id, 'evf-entries-ids' );
|
807 |
+
wp_cache_delete( $form_id, 'evf-last-entries-count' );
|
808 |
+
wp_cache_delete( $form_id, 'evf-search-entries' );
|
809 |
+
wp_cache_delete( EVF_Cache_Helper::get_cache_prefix( 'entries' ) . '_unread_count', 'entries' );
|
810 |
+
|
811 |
do_action( 'everest_forms_complete_entry_save', $entry_id, $fields, $entry, $form_id, $form_data );
|
812 |
|
813 |
return $this->entry_id;
|
includes/evf-entry-functions.php
CHANGED
@@ -173,14 +173,6 @@ function evf_search_entries( $args ) {
|
|
173 |
$where = (array) apply_filters( 'everest_forms_search_entries_where', $where, $args );
|
174 |
$where_sql = implode( ' AND ', $where );
|
175 |
|
176 |
-
// Check for cache.
|
177 |
-
$cache_key = EVF_Cache_Helper::get_cache_prefix( 'entries' ) . 'search_entries' . md5( wp_json_encode( $args ) );
|
178 |
-
$cache_value = wp_cache_get( $cache_key, 'entry_search_results' );
|
179 |
-
|
180 |
-
if ( $cache_value ) {
|
181 |
-
return $cache_value;
|
182 |
-
}
|
183 |
-
|
184 |
// Query object.
|
185 |
$query = array();
|
186 |
$query[] = "SELECT DISTINCT {$wpdb->prefix}evf_entries.entry_id FROM {$wpdb->prefix}evf_entries INNER JOIN {$wpdb->prefix}evf_entrymeta WHERE {$where_sql}";
|
@@ -227,8 +219,6 @@ function evf_search_entries( $args ) {
|
|
227 |
|
228 |
$ids = wp_list_pluck( $results, 'entry_id' );
|
229 |
|
230 |
-
wp_cache_set( $cache_key, $ids, 'entry_search_results' );
|
231 |
-
|
232 |
return $ids;
|
233 |
}
|
234 |
|
@@ -244,22 +234,15 @@ function evf_get_count_entries_by_status( $form_id ) {
|
|
244 |
$counts = array();
|
245 |
|
246 |
foreach ( $statuses as $status ) {
|
247 |
-
$
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
array(
|
254 |
-
'limit' => -1,
|
255 |
-
'status' => $status,
|
256 |
-
'form_id' => $form_id,
|
257 |
-
)
|
258 |
)
|
259 |
-
)
|
260 |
-
|
261 |
-
wp_cache_add( $cache_key, $count, 'entries' );
|
262 |
-
}
|
263 |
|
264 |
$counts[ $status ] = $count;
|
265 |
}
|
173 |
$where = (array) apply_filters( 'everest_forms_search_entries_where', $where, $args );
|
174 |
$where_sql = implode( ' AND ', $where );
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
// Query object.
|
177 |
$query = array();
|
178 |
$query[] = "SELECT DISTINCT {$wpdb->prefix}evf_entries.entry_id FROM {$wpdb->prefix}evf_entries INNER JOIN {$wpdb->prefix}evf_entrymeta WHERE {$where_sql}";
|
219 |
|
220 |
$ids = wp_list_pluck( $results, 'entry_id' );
|
221 |
|
|
|
|
|
222 |
return $ids;
|
223 |
}
|
224 |
|
234 |
$counts = array();
|
235 |
|
236 |
foreach ( $statuses as $status ) {
|
237 |
+
$count = count(
|
238 |
+
evf_search_entries(
|
239 |
+
array(
|
240 |
+
'limit' => -1,
|
241 |
+
'status' => $status,
|
242 |
+
'form_id' => $form_id,
|
|
|
|
|
|
|
|
|
|
|
243 |
)
|
244 |
+
)
|
245 |
+
);
|
|
|
|
|
246 |
|
247 |
$counts[ $status ] = $count;
|
248 |
}
|
includes/fields/class-evf-field-checkbox.php
CHANGED
@@ -389,7 +389,7 @@ class EVF_Field_Checkbox extends EVF_Form_Fields {
|
|
389 |
$choice['attr']['tabindex'] = '-1';
|
390 |
|
391 |
printf( '<input type="checkbox" %s %s %s>', evf_html_attributes( $choice['id'], $choice['class'], $choice['data'], $choice['attr'] ), esc_attr( $choice['required'] ), checked( '1', $choice['default'], false ) );
|
392 |
-
echo '<
|
393 |
echo '</label>';
|
394 |
} else {
|
395 |
// Normal display.
|
389 |
$choice['attr']['tabindex'] = '-1';
|
390 |
|
391 |
printf( '<input type="checkbox" %s %s %s>', evf_html_attributes( $choice['id'], $choice['class'], $choice['data'], $choice['attr'] ), esc_attr( $choice['required'] ), checked( '1', $choice['default'], false ) );
|
392 |
+
echo '<label class="everest-forms-image-choices-label">' . wp_kses_post( $choice['label']['text'] ) . '</label>';
|
393 |
echo '</label>';
|
394 |
} else {
|
395 |
// Normal display.
|
includes/fields/class-evf-field-radio.php
CHANGED
@@ -320,7 +320,7 @@ class EVF_Field_Radio extends EVF_Form_Fields {
|
|
320 |
$choice['attr']['tabindex'] = '-1';
|
321 |
|
322 |
printf( '<input type="radio" %s %s %s>', evf_html_attributes( $choice['id'], $choice['class'], $choice['data'], $choice['attr'] ), esc_attr( $choice['required'] ), checked( '1', $choice['default'], false ) );
|
323 |
-
echo '<
|
324 |
echo '</label>';
|
325 |
} else {
|
326 |
// Normal display.
|
320 |
$choice['attr']['tabindex'] = '-1';
|
321 |
|
322 |
printf( '<input type="radio" %s %s %s>', evf_html_attributes( $choice['id'], $choice['class'], $choice['data'], $choice['attr'] ), esc_attr( $choice['required'] ), checked( '1', $choice['default'], false ) );
|
323 |
+
echo '<label class="everest-forms-image-choices-label">' . wp_kses_post( $choice['label']['text'] ) . '</label>';
|
324 |
echo '</label>';
|
325 |
} else {
|
326 |
// Normal display.
|
languages/everest-forms.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Everest Forms plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Everest Forms 1.8.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/everest-forms\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2021-11-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: everest-forms\n"
|
2 |
# This file is distributed under the same license as the Everest Forms plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Everest Forms 1.8.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/everest-forms\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2021-11-30T04:32:30+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: everest-forms\n"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, forms, form builder, contact, custom form
|
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -302,6 +302,10 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
|
|
302 |
|
303 |
== Changelog ==
|
304 |
|
|
|
|
|
|
|
|
|
305 |
= 1.8.0.1 - 19-11-2021 =
|
306 |
* Fix - Ajax submission redirect not working.
|
307 |
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 1.8.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
302 |
|
303 |
== Changelog ==
|
304 |
|
305 |
+
= 1.8.1 - 30-11-2021 =
|
306 |
+
* Fix - Style Customizer Radio/Checkbox design not working.
|
307 |
+
* Enhancement - Object Caching plugin compatibility.
|
308 |
+
|
309 |
= 1.8.0.1 - 19-11-2021 =
|
310 |
* Fix - Ajax submission redirect not working.
|
311 |
|