Commit d8aecd0e authored by Kevin Stover's avatar Kevin Stover

Merge branch 'release/v2.2.52'

parents d21092d3 8cf25d05
......@@ -640,6 +640,18 @@ a.tooltip span
right: 10px;
}
.mp6 .nf-extend {
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
float: left;
margin: 0 20px 20px 0;
padding: 10px;
position: relative;
width: 300px;
height: 350px;
}
.forms_page_ninja-forms-style h2 .nav-tab {
font-size: 16px;
}
......
......@@ -119,6 +119,7 @@ function ninja_forms_tab_addons(){
'plugin' => 'ninja-forms-constant-contact/ninja-forms-constant-contact.php',
'docs' => '',
),
/*
array (
'title' => __( 'Pushover', 'ninja-forms' ),
'image' => 'http://ninjaforms.com/wp-content/uploads/edd/2013/07/pushover-300x121.png',
......@@ -134,7 +135,8 @@ function ninja_forms_tab_addons(){
'link' => 'http://ninjaforms.com/downloads/freshbooks/',
'plugin' => 'ninja-forms-freshbooks/ninja-forms-freshbooks.php',
'docs' => '',
),
),
*/
array (
'title' => __( 'AWeber', 'ninja-forms' ),
'image' => 'http://ninjaforms.com/wp-content/uploads/edd/2013/08/aweber-300x121.png',
......@@ -152,11 +154,19 @@ function ninja_forms_tab_addons(){
'docs' => '',
),
array (
'title' => __( 'WYSIJA', 'ninja-forms' ),
'image' => 'http://ninjaforms.com/wp-content/uploads/edd/2013/08/wysija-header-300x121.jpg',
'content' => __( 'The Wisija extension allows you to quickly create newsletter signup forms for your Wisija mailing lists using the power and flexibility that Ninja Forms provides.', 'ninja-forms' ),
'link' => 'http://ninjaforms.com/downloads/wysija/',
'plugin' => 'ninja-forms-wysija/nf-wysija.php',
'title' => __( 'MailPoet (formerly Wysija', 'ninja-forms' ),
'image' => 'http://ninjaforms.com/wp-content/uploads/edd/2013/09/mailpoet-300x121.png',
'content' => __( 'The MailPoet (formerly Wysija) extension allows you to quickly create newsletter signup forms for your MailPoet mailing lists using the power and flexibility that Ninja Forms provides.', 'ninja-forms' ),
'link' => 'http://ninjaforms.com/downloads/mailpoet/',
'plugin' => 'ninja-forms-mailpoet/nf-mailpoet.php',
'docs' => '',
),
array (
'title' => __( 'HubSpot', 'ninja-forms' ),
'image' => 'http://ninjaforms.com/wp-content/uploads/edd/2013/10/hubspot-300x121.png',
'content' => __( 'The Ninja Forms HubSpot Extension extends a forms capabilities by forwarding submit data directly into your HubSpot account.', 'ninja-forms' ),
'link' => 'http://ninjaforms.com/downloads/hubspot/',
'plugin' => 'ninja-forms-hubspot/ninja-forms-hubspot.php',
'docs' => '',
),
);
......
<?php
function ninja_forms_register_sidebar_post_fields(){
$add_field = apply_filters( 'ninja_forms_use_post_fields', false );
if ( !$add_field )
return false;
// For backwards compatibilty, make sure that this function doesn't already exist.
if ( !function_exists ( 'ninja_forms_register_field_post_tags' ) ) {
function ninja_forms_register_sidebar_post_fields(){
$add_field = apply_filters( 'ninja_forms_use_post_fields', false );
if ( !$add_field )
return false;
if(isset($_REQUEST['form_id'])){
$form_id = $_REQUEST['form_id'];
}else{
$form_id = '';
}
if( function_exists( 'ninja_forms_get_current_tab' ) ){
$current_tab = ninja_forms_get_current_tab();
}
if($form_id != '' AND $current_tab == 'field_settings'){
$form_row = ninja_forms_get_form_by_id($form_id);
if(is_array($form_row) AND !empty($form_row)){
$form_data = $form_row['data'];
if( isset( $form_data['create_post'] ) ){
$create_post = $form_data['create_post'];
if(isset($_REQUEST['form_id'])){
$form_id = $_REQUEST['form_id'];
}else{
$form_id = '';
}
if( function_exists( 'ninja_forms_get_current_tab' ) ){
$current_tab = ninja_forms_get_current_tab();
}
if($form_id != '' AND $current_tab == 'field_settings'){
$form_row = ninja_forms_get_form_by_id($form_id);
if(is_array($form_row) AND !empty($form_row)){
$form_data = $form_row['data'];
if( isset( $form_data['create_post'] ) ){
$create_post = $form_data['create_post'];
}else{
$create_post = '';
}
}else{
$create_post = '';
}
}else{
$create_post = '';
}
}else{
$create_post = '';
}
$args = array(
'name' => 'Post Creation Fields',
'page' => 'ninja-forms',
'tab' => 'field_settings',
'display_function' => 'ninja_forms_sidebar_display_fields'
);
if($create_post == 1){
if( function_exists( 'ninja_forms_register_sidebar' ) ){
ninja_forms_register_sidebar('post_fields', $args);
$args = array(
'name' => 'Post Creation Fields',
'page' => 'ninja-forms',
'tab' => 'field_settings',
'display_function' => 'ninja_forms_sidebar_display_fields'
);
if($create_post == 1){
if( function_exists( 'ninja_forms_register_sidebar' ) ){
ninja_forms_register_sidebar('post_fields', $args);
}
}
}
}
add_action( 'admin_init', 'ninja_forms_register_sidebar_post_fields' );
\ No newline at end of file
add_action( 'admin_init', 'ninja_forms_register_sidebar_post_fields' );
}
\ No newline at end of file
......@@ -260,7 +260,7 @@ function ninja_forms_get_subs($args = array()){
if(isset($args['begin_date']) AND $args['begin_date'] != ''){
$begin_date = $args['begin_date'];
$begin_date = strtotime($begin_date);
$begin_date = date("Y-m-d g:i:s", $begin_date);
$begin_date = date("Y-m-d G:i:s", $begin_date);
unset($args['begin_date']);
}else{
unset($args['begin_date']);
......@@ -269,7 +269,7 @@ function ninja_forms_get_subs($args = array()){
if(isset($args['end_date']) AND $args['end_date'] != ''){
$end_date = $args['end_date'];
$end_date = strtotime($end_date);
$end_date = date("Y-m-d g:i:s", $end_date);
$end_date = date("Y-m-d G:i:s", $end_date);
unset($args['end_date']);
}else{
unset($args['end_date']);
......
......@@ -81,17 +81,20 @@ function ninja_forms_field_calc_filter( $calc_data, $field_id ){
} else {
$field_value = '';
}
switch ( $calc_method ) {
case 'auto': // We are automatically totalling the fields that have a calc_auto_include set to 1.
if ( isset ( $field_data['calc_auto_include'] ) AND $field_data['calc_auto_include'] == 1 ) {
if ( $field['type'] == '_calc' ) {
$result = ninja_forms_calc_field_loop( $field['id'], '', $result );
$calc_value = ninja_forms_calc_field_loop( $field['id'], '', $result );
} else {
$calc_value = ninja_forms_field_calc_value( $field['id'], $field_value, $calc_method );
if ( $calc_value !== false ) {
$result = ninja_forms_calc_evaluate( 'add', $result, $calc_value );
}
$calc_value = ninja_forms_field_calc_value( $field['id'], $field_value, $calc_method );
}
if ( $calc_value !== false ) {
$result = ninja_forms_calc_evaluate( 'add', $result, $calc_value );
}
}
break;
case 'fields': // We are performing a specific set of operations on a set of fields.
......
......@@ -9,7 +9,7 @@
*/
function ninja_forms_default_value_filter( $data, $field_id ) {
global $current_user;
global $current_user, $post;
if(isset($data['default_value'])){
$default_value = $data['default_value'];
......@@ -18,11 +18,21 @@ function ninja_forms_default_value_filter( $data, $field_id ) {
}
get_currentuserinfo();
$user_ID = $current_user->ID;
$user_firstname = $current_user->user_firstname;
$user_lastname = $current_user->user_lastname;
$user_display_name = $current_user->display_name;
$user_email = $current_user->user_email;
$user_ID = $current_user->ID;
$user_firstname = $current_user->user_firstname;
$user_lastname = $current_user->user_lastname;
$user_display_name = $current_user->display_name;
$user_email = $current_user->user_email;
if ( is_object ( $post ) ) {
$post_ID = $post->ID;
$post_title = $post->post_title;
$post_url = get_permalink( $post_ID );
} else {
$post_ID = '';
$post_title = '';
$post_url = '';
}
switch( $default_value ){
case '_user_id':
......@@ -40,6 +50,15 @@ function ninja_forms_default_value_filter( $data, $field_id ) {
case 'user_email':
$default_value = $user_email;
break;
case 'post_id':
$default_value = $post_ID;
break;
case 'post_title':
$default_value = $post_title;
break;
case 'post_url':
$default_value = $post_url;
break;
}
$data['default_value'] = $default_value;
......
......@@ -35,7 +35,6 @@ function ninja_forms_register_field_hiddenbox(){
add_action('init', 'ninja_forms_register_field_hiddenbox');
function ninja_forms_field_hidden_edit($field_id, $data){
$custom = '';
// Default Value
if(isset($data['default_value'])){
......@@ -49,13 +48,16 @@ function ninja_forms_field_hidden_edit($field_id, $data){
<label for="">
<?php _e( 'Default Value' , 'ninja-forms'); ?><br />
<select id="default_value_<?php echo $field_id;?>" name="" class="widefat ninja-forms-hidden-default-value" rel="<?php echo $field_id;?>">
<option value="" <?php if($default_value == 'none' OR $default_value == ''){ echo 'selected'; $custom = 'no';}?>><?php _e('None', 'ninja-forms'); ?></option>
<option value="" <?php if( $default_value == ''){ echo 'selected'; $custom = 'no';}?>><?php _e('None', 'ninja-forms'); ?></option>
<option value="_user_id" <?php if($default_value == '_user_id'){ echo 'selected'; $custom = 'no';}?>><?php _e('User ID (If logged in)', 'ninja-forms'); ?></option>
<option value="user_firstname" <?php if($default_value == 'user_firstname'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Firstname (If logged in)', 'ninja-forms'); ?></option>
<option value="user_lastname" <?php if($default_value == 'user_lastname'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Lastname (If logged in)', 'ninja-forms'); ?></option>
<option value="_user_firstname" <?php if($default_value == '_user_firstname'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Firstname (If logged in)', 'ninja-forms'); ?></option>
<option value="_user_lastname" <?php if($default_value == '_user_lastname'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Lastname (If logged in)', 'ninja-forms'); ?></option>
<option value="_user_display_name" <?php if($default_value == '_user_display_name'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Display Name (If logged in)', 'ninja-forms'); ?></option>
<option value="user_email" <?php if($default_value == 'user_email'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Email (If logged in)', 'ninja-forms'); ?></option>
<option value="custom" <?php if($custom != 'no'){ echo 'selected';}?>><?php _e('Custom', 'ninja-forms'); ?> -></option>
<option value="_user_email" <?php if($default_value == '_user_email'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Email (If logged in)', 'ninja-forms'); ?></option>
<option value="post_id" <?php if($default_value == 'post_id'){ echo 'selected'; $custom = 'no';}?>><?php _e('Post / Page ID (If available)', 'ninja-forms'); ?></option>
<option value="post_title" <?php if($default_value == 'post_title'){ echo 'selected'; $custom = 'no';}?>><?php _e('Post / Page Title (If available)', 'ninja-forms'); ?></option>
<option value="post_url" <?php if($default_value == 'post_url'){ echo 'selected'; $custom = 'no';}?>><?php _e('Post / Page URL (If available)', 'ninja-forms'); ?></option>
<option value="_custom" <?php if($custom != 'no'){ echo 'selected';}?>><?php _e('Custom', 'ninja-forms'); ?> -></option>
</select>
</label>
</p>
......@@ -123,31 +125,6 @@ function ninja_forms_field_hidden_display($field_id, $data){
$default_value = '';
}
get_currentuserinfo();
$user_ID = $current_user->ID;
$user_firstname = $current_user->user_firstname;
$user_lastname = $current_user->user_lastname;
$user_display_name = $current_user->display_name;
$user_email = $current_user->user_email;
switch( $default_value ){
case '_user_id':
$default_value = $user_ID;
break;
case 'user_firstname':
$default_value = $user_firstname;
break;
case 'user_lastname':
$default_value = $user_lastname;
break;
case '_user_display_name':
$default_value = $user_display_name;
break;
case 'user_email':
$default_value = $user_email;
break;
}
?>
<input id="ninja_forms_field_<?php echo $field_id;?>" name="ninja_forms_field_<?php echo $field_id;?>" type="hidden" class="<?php echo $field_class;?>" value="<?php echo $default_value;?>" rel="<?php echo $field_id;?>" />
<?php
......
......@@ -129,6 +129,9 @@ function ninja_forms_field_text_edit( $field_id, $data ){
<option value="_user_lastname" <?php if($default_value == '_user_lastname'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Lastname (If logged in)', 'ninja-forms'); ?></option>
<option value="_user_display_name" <?php if($default_value == '_user_display_name'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Display Name (If logged in)', 'ninja-forms'); ?></option>
<option value="_user_email" <?php if($default_value == '_user_email'){ echo 'selected'; $custom = 'no';}?>><?php _e('User Email (If logged in)', 'ninja-forms'); ?></option>
<option value="post_id" <?php if($default_value == 'post_id'){ echo 'selected'; $custom = 'no';}?>><?php _e('Post / Page ID (If available)', 'ninja-forms'); ?></option>
<option value="post_title" <?php if($default_value == 'post_title'){ echo 'selected'; $custom = 'no';}?>><?php _e('Post / Page Title (If available)', 'ninja-forms'); ?></option>
<option value="post_url" <?php if($default_value == 'post_url'){ echo 'selected'; $custom = 'no';}?>><?php _e('Post / Page URL (If available)', 'ninja-forms'); ?></option>
<option value="_custom" <?php if($custom != 'no'){ echo 'selected';}?>><?php _e('Custom', 'ninja-forms'); ?> -></option>
</select>
</span>
......
......@@ -166,7 +166,12 @@ jQuery(document).ready(function(jQuery) {
var previousValue = 'unchecked';
}
} else {
var previousValue = jQuery(this).val();
if ( typeof this.type === 'undefined' ) {
var previousValue = jQuery(this).prop('innerHTML');
} else {
var previousValue = jQuery(this).val();
}
}
var form_id = ninja_forms_get_form_id( this );
......@@ -249,8 +254,9 @@ jQuery(document).ready(function(jQuery) {
};
}
}
if ( ( ( calc_method == 'fields' || calc_method == 'eq' ) && change ) || calc_method == 'auto' ) {
if ( calc_method == 'auto' || calc_method == 'fields' ) { // Method: auto or fields
// Loop through our calc fields and check to see if they are set to auto. If they are, perform the auto totalling actions.
var key = jQuery(this).val();
......@@ -370,9 +376,14 @@ jQuery(document).ready(function(jQuery) {
old_value = 0;
}
}
} else if ( jQuery('#ninja_forms_field_' + field_id + '_type').val() == 'calc' ) {
if ( key == '' ) {
key = jQuery('#ninja_forms_field_' + field_id).prop('innerHTML');
}
}
if ( new_value === '' ) {
if ( typeof calc_settings.calc_value[field_id] !== 'undefined' && typeof calc_settings.calc_value[field_id][key] !== 'undefined' ) {
// Get our calc value for this field from our previously defined JS object.
......@@ -396,6 +407,8 @@ jQuery(document).ready(function(jQuery) {
}
}
console.log(field_id + ':' + old_value);
// Check to see if our old_value exists in the calc_value JS object.
if ( typeof calc_settings.calc_value[field_id] !== 'undefined' && typeof calc_settings.calc_value[field_id][old_value] !== 'undefined' ) {
// Grab our calc value form the calc_value JS object.
......@@ -459,7 +472,6 @@ jQuery(document).ready(function(jQuery) {
}
// If our old value exists and isn't empty or 0, then carry out the old_op on it.
if ( old_value && !isNaN( old_value ) && old_value != 0 && old_value != '' && !jQuery(this).hasClass('ninja-forms-field-calc-no-old-op') ) {
old_value = parseFloat( old_value );
var asdf = current_value;
......@@ -486,6 +498,7 @@ jQuery(document).ready(function(jQuery) {
// Make sure that the changed field is in the formula and that we should change the current value.
var f_id = calc_settings.calc_fields[calc_id]['fields'][i];
var key = jQuery("#ninja_forms_field_" + f_id).val();
var f_value = '';
if ( jQuery('#ninja_forms_field_' + f_id + '_type' ).val() == 'list' ) {
......@@ -518,18 +531,23 @@ jQuery(document).ready(function(jQuery) {
} else {
var key = 'unchecked';
}
} else if ( jQuery('#ninja_forms_field_' + f_id + '_type').val() == 'calc' ) {
if ( key == '' ) {
f_value = jQuery("#ninja_forms_field_" + f_id).prop('innerHTML');
}
}
if ( f_value == '' ) {
if ( typeof calc_settings.calc_value[f_id] !== 'undefined' && typeof calc_settings.calc_value[f_id][key] !== 'undefined' ) {
f_value = calc_settings.calc_value[f_id][key]
f_value = calc_settings.calc_value[f_id][key];
//console.log( 'here: ' + f_value );
} else {
f_value = key;
}
}
// Check for a percentage sign in our f_value. If we find one, then convert it to a decimal.
if ( typeof f_value !== 'undefined' ) {
if ( typeof f_value !== 'undefined' && typeof f_value === 'string' ) {
if ( f_value.indexOf("%") >= 0 ) {
f_value = f_value.replace( "%", "" );
......@@ -540,11 +558,10 @@ jQuery(document).ready(function(jQuery) {
}
}
// This field doesn't exist in the calc value object. It's either a textbox or similar element.
if ( typeof this.type === 'undefined' ) {
if ( typeof this.type === 'undefined' && key == '' ) {
f_value = this.innerHTML;
//console.log( 'undefined: ' + f_value );
}
if ( typeof ninja_forms_settings.currency_symbol !== 'undefined' && isNaN( f_value ) ) {
......@@ -560,6 +577,7 @@ jQuery(document).ready(function(jQuery) {
var re = new RegExp(find, 'g');
tmp_eq = tmp_eq.replace(re, f_value);
}
var calc_value = eval(tmp_eq);
}
......@@ -584,10 +602,11 @@ jQuery(document).ready(function(jQuery) {
}
if ( current_value !== calc_value ) {
if ( jQuery('#ninja_forms_field_' + field_id + '_list_type').val() != 'checkbox' ) {
console.log( 'set old value ' + field_id + ':' + key );
jQuery(this).data(calc_id + '-oldValue', key);
}
}
if ( jQuery('#ninja_forms_field_' + field_id + '_list_type').val() == 'checkbox' || jQuery('#ninja_forms_field_' + field_id + '_list_type').val() == 'radio' ) {
jQuery("#ninja_forms_field_" + field_id + "_div_wrap").find(".ninja-forms-field").each(function(){
......@@ -596,7 +615,6 @@ jQuery(document).ready(function(jQuery) {
} else {
jQuery(this).removeClass('ninja-forms-field-calc-no-old-op');
}
calc_value = calc_value.toFixed(calc_places);
// Set the value of our calculation field.
......
This diff is collapsed.
......@@ -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: 2.2.51
Version: 2.2.52
Author: The WP Ninjas
Author URI: http://ninjaforms.com
Text Domain: ninja-forms
......@@ -51,7 +51,7 @@ global $wpdb, $wp_version;
define("NINJA_FORMS_DIR", WP_PLUGIN_DIR."/".basename( dirname( __FILE__ ) ) );
define("NINJA_FORMS_URL", plugins_url()."/".basename( dirname( __FILE__ ) ) );
define("NINJA_FORMS_VERSION", "2.2.51");
define("NINJA_FORMS_VERSION", "2.2.52");
define("NINJA_FORMS_TABLE_NAME", $wpdb->prefix . "ninja_forms");
define("NINJA_FORMS_FIELDS_TABLE_NAME", $wpdb->prefix . "ninja_forms_fields");
define("NINJA_FORMS_FAV_FIELDS_TABLE_NAME", $wpdb->prefix . "ninja_forms_fav_fields");
......@@ -84,9 +84,9 @@ require_once( NINJA_FORMS_DIR . "/includes/display/processing/fields-pre-process
require_once( NINJA_FORMS_DIR . "/includes/display/processing/fields-process.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/processing/fields-post-process.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/processing/req-fields-pre-process.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/processing/term-name-filter.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/processing/update-terms.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/processing/attach-post-media.php" );
//require_once( NINJA_FORMS_DIR . "/includes/display/processing/term-name-filter.php" );
//require_once( NINJA_FORMS_DIR . "/includes/display/processing/update-terms.php" );
//require_once( NINJA_FORMS_DIR . "/includes/display/processing/attach-post-media.php" );
//Display Form Functions
require_once( NINJA_FORMS_DIR . "/includes/display/form/display-form.php" );
......@@ -109,7 +109,7 @@ require_once( NINJA_FORMS_DIR . "/includes/display/fields/restore-progress.php"
require_once( NINJA_FORMS_DIR . "/includes/display/fields/inside-label-hidden.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/fields/field-type.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/fields/calc-filter.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/fields/list-term-filter.php" );
//require_once( NINJA_FORMS_DIR . "/includes/display/fields/list-term-filter.php" );
require_once( NINJA_FORMS_DIR . "/includes/display/fields/default-value-filter.php" );
/* Require Pre-Registered Tabs and their sidebars */
......@@ -152,7 +152,7 @@ require_once( NINJA_FORMS_DIR . "/includes/display/fields/default-value-filter.p
require_once( NINJA_FORMS_DIR . "/includes/admin/edit-field/save-button.php" );
require_once( NINJA_FORMS_DIR . "/includes/admin/edit-field/calc.php" );
require_once( NINJA_FORMS_DIR . "/includes/admin/edit-field/user-info-fields.php" );
require_once( NINJA_FORMS_DIR . "/includes/admin/edit-field/list-terms.php" );
//require_once( NINJA_FORMS_DIR . "/includes/admin/edit-field/list-terms.php" );
require_once( NINJA_FORMS_DIR . "/includes/admin/edit-field/post-meta-values.php" );
/* * * * ninja-forms - Main Form Editing Page
......@@ -177,7 +177,7 @@ require_once( NINJA_FORMS_DIR . "/includes/display/fields/default-value-filter.p
require_once( NINJA_FORMS_DIR . "/includes/admin/pages/ninja-forms/tabs/field-settings/sidebars/layout-fields.php" );
require_once( NINJA_FORMS_DIR . "/includes/admin/pages/ninja-forms/tabs/field-settings/sidebars/user-info.php" );
require_once( NINJA_FORMS_DIR . "/includes/admin/pages/ninja-forms/tabs/field-settings/sidebars/payment-fields.php" );
require_once( NINJA_FORMS_DIR . "/includes/admin/pages/ninja-forms/tabs/field-settings/sidebars/post-fields.php" );
//require_once( NINJA_FORMS_DIR . "/includes/admin/pages/ninja-forms/tabs/field-settings/sidebars/post-fields.php" );
/* Form Preview */
require_once( NINJA_FORMS_DIR . "/includes/admin/pages/ninja-forms/tabs/form-preview/form-preview.php" );
......@@ -256,13 +256,13 @@ require_once( NINJA_FORMS_DIR . "/includes/fields/calc.php" );
require_once( NINJA_FORMS_DIR . "/includes/fields/country.php" );
require_once( NINJA_FORMS_DIR . "/includes/fields/tax.php" );
require_once( NINJA_FORMS_DIR . "/includes/fields/credit-card.php" );
/*
require_once( NINJA_FORMS_DIR . "/includes/fields/post-title.php" );
require_once( NINJA_FORMS_DIR . "/includes/fields/post-content.php" );
require_once( NINJA_FORMS_DIR . "/includes/fields/post-tags.php" );
require_once( NINJA_FORMS_DIR . "/includes/fields/post-terms.php" );
require_once( NINJA_FORMS_DIR . "/includes/fields/post-excerpt.php" );
*/
require_once( NINJA_FORMS_DIR . "/includes/admin/save.php" );
if(session_id() == '') {
......
......@@ -3,7 +3,7 @@ Contributors: kstover, jameslaws, daveshine, mordauk, bftrick
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: 3.4
Tested up to: 3.6
Stable tag: 2.2.51
Stable tag: 2.2.52
License: GPLv2 or later
Forms created with a simple drag and drop interface. Contact forms, Email collection forms, or any other form you want on your WordPress site.
......@@ -76,17 +76,12 @@ For help and video tutorials, please visit our website: [Ninja Forms Documentati
== Upgrade Notice ==
= 2.2.51 =
*Bugs:*
* Fixed a bug that prevented advanced calculations from working properly.
* Fixed some bugs with the field descripition.
= 2.2.52 =
*Changes:*
* Added a message to the license tab if no extensions are installed.
* Improved the structure of metaboxes.
* Added new options to the default value setting: Post ID, Post Title, and Post URL.
* Improved performance with the MP6 plugin.
== Requested Features ==
......@@ -94,6 +89,13 @@ If you have any feature requests, please feel free to visit [ninjaforms.com](htt
== Changelog ==
= 2.2.52 =
*Changes:*
* Added new options to the default value setting: Post ID, Post Title, and Post URL.
* Improved performance with the MP6 plugin.
= 2.2.51 =
*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