Commit acc55397 authored by Kyle B. Johnson's avatar Kyle B. Johnson Committed by Kevin Stover

version bump to v3.0.4 (#1783)

parent 61b9cbc0
......@@ -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.4
Tested up to: 4.6
Stable tag: 3.0.3
Stable tag: 3.0.4
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.
......
......@@ -265,7 +265,7 @@ class Ninja_Forms {
// Plugin version
if ( ! defined( 'NF_PLUGIN_VERSION' ) )
define( 'NF_PLUGIN_VERSION', '3.0.3' );
define( 'NF_PLUGIN_VERSION', '3.0.4' );
// Plugin Folder Path
if ( ! defined( 'NF_PLUGIN_DIR' ) )
......
......@@ -374,9 +374,11 @@ final class NF_Display_Render
$form = Ninja_Forms()->form( $form_id )->get();
$is_preview = ( $form->get_tmp_id() );
$ver = Ninja_Forms::VERSION;
$js_dir = Ninja_Forms::$url . 'assets/js/min/';
$css_dir = Ninja_Forms::$url . 'assets/css/';
switch( Ninja_Forms()->get_setting( 'opinionated_styles' ) ) {
case 'light':
wp_enqueue_style( 'nf-display', $css_dir . 'display-opinions-light.css' );
......@@ -392,16 +394,16 @@ final class NF_Display_Render
if( $is_preview || self::form_uses_recaptcha( $form_id ) ) {
$recaptcha_lang = Ninja_Forms()->get_setting('recaptcha_lang');
wp_enqueue_script('google-recaptcha', 'https://www.google.com/recaptcha/api.js?hl=' . $recaptcha_lang, array( 'jquery' ), Ninja_Forms::VERSION );
wp_enqueue_script('google-recaptcha', 'https://www.google.com/recaptcha/api.js?hl=' . $recaptcha_lang, array( 'jquery' ), $ver );
}
if( $is_preview || self::form_uses_datepicker( $form_id ) ) {
wp_enqueue_style( 'pikaday-responsive', $css_dir . 'pikaday-package.css', Ninja_Forms::VERSION );
wp_enqueue_script('nf-front-end--datepicker', $js_dir . 'front-end--datepicker.min.js', array( 'jquery' ), Ninja_Forms::VERSION );
wp_enqueue_style( 'pikaday-responsive', $css_dir . 'pikaday-package.css', $ver );
wp_enqueue_script('nf-front-end--datepicker', $js_dir . 'front-end--datepicker.min.js', array( 'jquery' ), $ver );
}
if( $is_preview || self::form_uses_inputmask( $form_id ) ) {
wp_enqueue_script('nf-front-end--inputmask', $js_dir . 'front-end--inputmask.min.js', array( 'jquery' ), Ninja_Forms::VERSION );
wp_enqueue_script('nf-front-end--inputmask', $js_dir . 'front-end--inputmask.min.js', array( 'jquery' ), $ver );
}
if( $is_preview || self::form_uses_rte( $form_id ) ) {
......@@ -409,24 +411,24 @@ final class NF_Display_Render
wp_enqueue_media();
}
wp_enqueue_style( 'summernote', $css_dir . 'summernote.css' , Ninja_Forms::VERSION );
wp_enqueue_style( 'codemirror', $css_dir . 'codemirror.css' , Ninja_Forms::VERSION );
wp_enqueue_style( 'codemirror-monokai', $css_dir . 'monokai-theme.css', Ninja_Forms::VERSION );
wp_enqueue_script('nf-front-end--rte', $js_dir . 'front-end--rte.min.js', array( 'jquery' ), Ninja_Forms::VERSION );
wp_enqueue_style( 'summernote', $css_dir . 'summernote.css' , $ver );
wp_enqueue_style( 'codemirror', $css_dir . 'codemirror.css' , $ver );
wp_enqueue_style( 'codemirror-monokai', $css_dir . 'monokai-theme.css', $ver );
wp_enqueue_script('nf-front-end--rte', $js_dir . 'front-end--rte.min.js', array( 'jquery' ), $ver );
}
if( $is_preview || self::form_uses_helptext( $form_id ) ) {
wp_enqueue_style( 'jBox', $css_dir . 'jBox.css', Ninja_Forms::VERSION );
wp_enqueue_script('nf-front-end--helptext', $js_dir . 'front-end--helptext.min.js', array( 'jquery' ), Ninja_Forms::VERSION );
wp_enqueue_style( 'jBox', $css_dir . 'jBox.css', $ver );
wp_enqueue_script('nf-front-end--helptext', $js_dir . 'front-end--helptext.min.js', array( 'jquery' ), $ver );
}
if( $is_preview || self::form_uses_starrating( $form_id ) ) {
wp_enqueue_style( 'rating', $css_dir . 'rating.css', Ninja_Forms::VERSION );
wp_enqueue_script('nf-front-end--starrating', $js_dir . 'front-end--starrating.min.js', array( 'jquery' ), Ninja_Forms::VERSION );
wp_enqueue_script('nf-front-end--starrating', $js_dir . 'front-end--starrating.min.js', array( 'jquery' ), $ver );
}
wp_enqueue_script( 'nf-front-end-deps', $js_dir . 'front-end-deps.js', array( 'jquery', 'backbone' ), Ninja_Forms::VERSION );
wp_enqueue_script( 'nf-front-end', $js_dir . 'front-end.js', array( 'nf-front-end-deps' ), Ninja_Forms::VERSION );
wp_enqueue_script( 'nf-front-end-deps', $js_dir . 'front-end-deps.js', array( 'jquery', 'backbone' ), $ver );
wp_enqueue_script( 'nf-front-end', $js_dir . 'front-end.js', array( 'nf-front-end-deps' ), $ver );
wp_localize_script( 'nf-front-end', 'nfi18n', Ninja_Forms::config( 'i18nFrontEnd' ) );
......
......@@ -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.0.3
Version: 3.0.4
Author: The WP Ninjas
Author URI: http://ninjaforms.com
Text Domain: ninja-forms
......@@ -51,7 +51,7 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
/**
* @since 3.0
*/
const VERSION = '3.0.3';
const VERSION = '3.0.4';
/**
* @var Ninja_Forms
......
......@@ -3,7 +3,7 @@ Contributors: wpninjasllc, kstover, jameslaws, kbjohnson90, klhall1987, wpnzach,
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.4
Tested up to: 4.6.1
Stable tag: 3.0.3
Stable tag: 3.0.4
License: GPLv2 or later
Drag and drop fields in an intuitive UI to create create contact forms, email subscription forms, order forms, payment forms, send emails and more!
......@@ -102,22 +102,20 @@ For help and video tutorials, please visit our website: [Ninja Forms Documentati
== Upgrade Notice ==
= 3.0.3 (13 September 2016) =
= 3.0.4 (13 September 2016) =
*Bugs:*
* Added isInteger polyfill for IE11.
* Added deprecated functions to prevent PHP errors.
* Required fields message should now not show when the form is hidden.
* Field-specific scripts should only load when that field is present.
* Updating translatable text.
* Radio lists should no longer select an option by default.
* Conversions should be more stable.
* Text to HTML field conversion should now happen correctly.
* Fixed a conflict with Visual Composer.
* Fixed a bug with aggressive CDN caching.
== Changelog ==
= 3.0.4 (13 September 2016) =
*Bugs:*
* Fixed a bug with aggressive CDN caching.
= 3.0.3 (13 September 2016) =
*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