Commit b32c23d7 authored by KR Moorhouse's avatar KR Moorhouse

Manual version bump of master to resolve immediate issue with date fields.

parent fd1db1d4
......@@ -4,7 +4,7 @@
Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration,
Requires at least: 4.7
Tested up to: 4.9
Stable tag: 3.2.26
Stable tag: 3.2.27
License: GPLv2 or later
With a simple drag and drop interface you can create contact forms, email subscription forms, order forms, payment forms, and any other type of form for your WordPress site.
......
......@@ -22,6 +22,11 @@ define([], function() {
var fieldID = model.get( 'id' );
var value = model.get( 'value' );
var format = model.get( 'date_format' );
if( 'default' === format) {
format = nfi18n.dateFormat;
}
if ( 0 < value.length ) {
// use moment's isValid to check against the fields format setting
if( moment( value, format ).isValid() ) {
......@@ -68,7 +73,11 @@ define([], function() {
/*
* Get our current date format
*/
var format = model.get( 'format' );
var format = model.get( 'date_format' );
if( 'default' === format) {
format = nfi18n.dateFormat;
}
/*
* Check our value to see if it is a valid email.
......
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -265,7 +265,7 @@ class Ninja_Forms {
// Plugin version
if ( ! defined( 'NF_PLUGIN_VERSION' ) )
define( 'NF_PLUGIN_VERSION', '3.2.26' );
define( 'NF_PLUGIN_VERSION', '3.2.27' );
// Plugin Folder Path
if ( ! defined( 'NF_PLUGIN_DIR' ) )
......
......@@ -3,7 +3,7 @@
Plugin Name: Ninja Forms
Plugin URI: http://ninjaforms.com/
Description: Ninja Forms is a webform builder with unparalleled ease of use and features.
Version: 3.2.26
Version: 3.2.27
Author: The WP Ninjas
Author URI: http://ninjaforms.com
Text Domain: ninja-forms
......@@ -53,7 +53,7 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
/**
* @since 3.0
*/
const VERSION = '3.2.26';
const VERSION = '3.2.27';
const WP_MIN_VERSION = '4.7';
......
......@@ -3,7 +3,7 @@ Contributors: wpninjasllc, kstover, jameslaws, kbjohnson90, klhall1987, krmoorho
Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration,
Requires at least: 4.7
Tested up to: 4.9
Stable tag: 3.2.26
Stable tag: 3.2.27
License: GPLv2 or later
Drag and drop fields in an intuitive UI to create contact forms, email subscription forms, order forms, payment forms, send emails and more!
......@@ -111,7 +111,7 @@ For help and video tutorials, please visit our website: [Ninja Forms Documentati
== Upgrade Notice ==
= 3.2.26 (10 May 2018) =
= 3.2.27 (11 May 2018) =
*Bugs:*
......@@ -120,9 +120,16 @@ For help and video tutorials, please visit our website: [Ninja Forms Documentati
* Resolved an issue that was sometimes causing date fields to always fail validation.
* Removed the random error text that sometimes appeared on form export.
* Resolved an issue that sometimes caused the contents of plain text emails to not display properly in the form builder.
* Date fields should no longer fail validation if their format is set to the default setting.
== Changelog ==
= 3.2.27 (11 May 2018) =
*Bugs:*
* Date fields should no longer fail validation if their format is set to the default setting.
= 3.2.26 (10 May 2018) =
*Bugs:*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment