Version Description
(25 August 2020) =
Bugs:
- Sites with WP_DEBUG enabled should no longer display a deprecated parent error on PHP version 7.4.
- Resolved an issue that was preventing our Screen Options settings from being saved on the submissions page.
=
Download this release
Release Info
Developer | krmoorhouse |
Plugin | Ninja Forms – The Easy and Powerful Forms Builder |
Version | 3.4.26 |
Comparing to | |
See all releases |
Code changes from version 3.4.25 to 3.4.26
- deprecated/ninja-forms.php +1 -1
- includes/Abstracts/Element.php +9 -0
- includes/Abstracts/Field.php +3 -2
- includes/Admin/CPT/Submission.php +6 -0
- ninja-forms.php +2 -2
- readme.txt +4 -3
deprecated/ninja-forms.php
CHANGED
@@ -265,7 +265,7 @@ class Ninja_Forms {
|
|
265 |
|
266 |
// Plugin version
|
267 |
if ( ! defined( 'NF_PLUGIN_VERSION' ) )
|
268 |
-
define( 'NF_PLUGIN_VERSION', '3.4.
|
269 |
|
270 |
// Plugin Folder Path
|
271 |
if ( ! defined( 'NF_PLUGIN_DIR' ) )
|
265 |
|
266 |
// Plugin version
|
267 |
if ( ! defined( 'NF_PLUGIN_VERSION' ) )
|
268 |
+
define( 'NF_PLUGIN_VERSION', '3.4.26' );
|
269 |
|
270 |
// Plugin Folder Path
|
271 |
if ( ! defined( 'NF_PLUGIN_DIR' ) )
|
includes/Abstracts/Element.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class NF_Abstracts_Element
|
5 |
+
*/
|
6 |
+
abstract class NF_Abstracts_Element
|
7 |
+
{
|
8 |
+
|
9 |
+
}
|
includes/Abstracts/Field.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Class NF_Abstracts_Field
|
5 |
*/
|
6 |
-
abstract class NF_Abstracts_Field
|
7 |
{
|
8 |
/**
|
9 |
* @var string
|
@@ -210,8 +210,9 @@ abstract class NF_Abstracts_Field
|
|
210 |
if( $this->_parent_type ){
|
211 |
return $this->_parent_type;
|
212 |
}
|
|
|
213 |
// If a type is not set, return 'textbox'
|
214 |
-
return ( get_parent_class() ) ? parent::$_type : 'textbox';
|
215 |
}
|
216 |
|
217 |
public function get_settings()
|
3 |
/**
|
4 |
* Class NF_Abstracts_Field
|
5 |
*/
|
6 |
+
abstract class NF_Abstracts_Field extends NF_Abstracts_Element
|
7 |
{
|
8 |
/**
|
9 |
* @var string
|
210 |
if( $this->_parent_type ){
|
211 |
return $this->_parent_type;
|
212 |
}
|
213 |
+
|
214 |
// If a type is not set, return 'textbox'
|
215 |
+
return ( get_parent_class() && isset ( parent::$_type ) ) ? parent::$_type : 'textbox';
|
216 |
}
|
217 |
|
218 |
public function get_settings()
|
includes/Admin/CPT/Submission.php
CHANGED
@@ -417,6 +417,12 @@ class NF_Admin_CPT_Submission
|
|
417 |
$form_id = absint( $_REQUEST['form_id'] );
|
418 |
$hidden = isset( $_POST['hidden'] ) ? explode( ',', esc_html( $_POST['hidden'] ) ) : array();
|
419 |
$hidden = array_filter( $hidden );
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
update_user_option( $user->ID, 'manageedit-nf_subcolumnshidden-form-' . $form_id, $hidden, true );
|
421 |
die();
|
422 |
}
|
417 |
$form_id = absint( $_REQUEST['form_id'] );
|
418 |
$hidden = isset( $_POST['hidden'] ) ? explode( ',', esc_html( $_POST['hidden'] ) ) : array();
|
419 |
$hidden = array_filter( $hidden );
|
420 |
+
$hidden = array_map( function($field) {
|
421 |
+
if( is_numeric($field) ) {
|
422 |
+
$field = absint($field);
|
423 |
+
}
|
424 |
+
return $field;
|
425 |
+
}, $hidden );
|
426 |
update_user_option( $user->ID, 'manageedit-nf_subcolumnshidden-form-' . $form_id, $hidden, true );
|
427 |
die();
|
428 |
}
|
ninja-forms.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ninja Forms
|
4 |
Plugin URI: http://ninjaforms.com/?utm_source=Ninja+Forms+Plugin&utm_medium=readme
|
5 |
Description: Ninja Forms is a webform builder with unparalleled ease of use and features.
|
6 |
-
Version: 3.4.
|
7 |
Author: Saturday Drive
|
8 |
Author URI: http://ninjaforms.com/?utm_source=Ninja+Forms+Plugin&utm_medium=Plugins+WP+Dashboard
|
9 |
Text Domain: ninja-forms
|
@@ -59,7 +59,7 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
|
|
59 |
* @since 3.0
|
60 |
*/
|
61 |
|
62 |
-
const VERSION = '3.4.
|
63 |
|
64 |
/**
|
65 |
* @since 3.4.0
|
3 |
Plugin Name: Ninja Forms
|
4 |
Plugin URI: http://ninjaforms.com/?utm_source=Ninja+Forms+Plugin&utm_medium=readme
|
5 |
Description: Ninja Forms is a webform builder with unparalleled ease of use and features.
|
6 |
+
Version: 3.4.26
|
7 |
Author: Saturday Drive
|
8 |
Author URI: http://ninjaforms.com/?utm_source=Ninja+Forms+Plugin&utm_medium=Plugins+WP+Dashboard
|
9 |
Text Domain: ninja-forms
|
59 |
* @since 3.0
|
60 |
*/
|
61 |
|
62 |
+
const VERSION = '3.4.26';
|
63 |
|
64 |
/**
|
65 |
* @since 3.4.0
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wpninjasllc, kstover, jameslaws, kbjohnson90, klhall1987, krmoorho
|
|
3 |
Tags: forms, contact form, email form, form builder, custom form, pdf form, registration form, payment form, login form, contact me, signature form, upload form, file upload form, conditional form, feedback form, appointment form, quote form, survey form, contact button, signup form, form plugin, contact form plugin, subscription form, email subscription form, newsletter form, donation form, booking form, quote request form, multi page form, conditional logic form, subscription form, application form, employment verification form, star rating form, rating form, event form, mailchimp form, campaign monitor form, constant contact form, mailpoet form, aweber form, cleverreach form, emma form, convertkit form, active campaign form, salesforce form, zoho form, capsule form, insightly form, pipelinedeals form, onepagecrm form
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.5
|
6 |
-
Stable tag: 3.4.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
The 100% beginner friendly WordPress form builder. Drag & drop form fields to build beautiful, professional contact forms in minutes.
|
@@ -303,11 +303,12 @@ This section describes how to install the plugin and get it working.
|
|
303 |
|
304 |
== Upgrade Notice ==
|
305 |
|
306 |
-
= 3.4.
|
307 |
|
308 |
*Bugs:*
|
309 |
|
310 |
-
*
|
|
|
311 |
|
312 |
== Changelog ==
|
313 |
|
3 |
Tags: forms, contact form, email form, form builder, custom form, pdf form, registration form, payment form, login form, contact me, signature form, upload form, file upload form, conditional form, feedback form, appointment form, quote form, survey form, contact button, signup form, form plugin, contact form plugin, subscription form, email subscription form, newsletter form, donation form, booking form, quote request form, multi page form, conditional logic form, subscription form, application form, employment verification form, star rating form, rating form, event form, mailchimp form, campaign monitor form, constant contact form, mailpoet form, aweber form, cleverreach form, emma form, convertkit form, active campaign form, salesforce form, zoho form, capsule form, insightly form, pipelinedeals form, onepagecrm form
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 3.4.26
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
The 100% beginner friendly WordPress form builder. Drag & drop form fields to build beautiful, professional contact forms in minutes.
|
303 |
|
304 |
== Upgrade Notice ==
|
305 |
|
306 |
+
= 3.4.26 (25 August 2020) =
|
307 |
|
308 |
*Bugs:*
|
309 |
|
310 |
+
* Sites with WP_DEBUG enabled should no longer display a deprecated parent error on PHP version 7.4.
|
311 |
+
* Resolved an issue that was preventing our Screen Options settings from being saved on the submissions page.
|
312 |
|
313 |
== Changelog ==
|
314 |
|