Toolset Types – Custom Post Types, Custom Fields and Taxonomies - Version 1.8.4

Version Description

  • Release date: 2015-09-01
  • Fixed a problem with display post parent in post children table after pagination.
  • Fixed a problem with some AJAX action (can't add new field, can't choose child fields, etc. etc.)
Download this release

Release Info

Developer iworks
Plugin Icon 128x128 Toolset Types – Custom Post Types, Custom Fields and Taxonomies
Version 1.8.4
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4

embedded/bootstrap.php CHANGED
@@ -156,7 +156,7 @@ function wpcf_embedded_init() {
156
  // Define necessary constants if plugin is not present
157
  // This ones are skipped if used as embedded code!
158
  if ( !defined( 'WPCF_VERSION' ) ) {
159
- define( 'WPCF_VERSION', '1.8.3' );
160
  define( 'WPCF_META_PREFIX', 'wpcf-' );
161
  }
162
 
156
  // Define necessary constants if plugin is not present
157
  // This ones are skipped if used as embedded code!
158
  if ( !defined( 'WPCF_VERSION' ) ) {
159
+ define( 'WPCF_VERSION', '1.8.4' );
160
  define( 'WPCF_META_PREFIX', 'wpcf-' );
161
  }
162
 
embedded/plugin.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
- Version: 1.8.3
9
  */
10
  /**
11
  *
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
+ Version: 1.8.4
9
  */
10
  /**
11
  *
embedded/readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: CMS, custom field, custom fields, custom post type, custom post types, fie
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.3
8
- Stable tag: 1.8.1
9
 
10
  The Embedded version lets you create custom types, taxonomies and fields for your theme or plugin, without requiring any plugin.
11
 
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.3
8
+ Stable tag: 1.8.4
9
 
10
  The Embedded version lets you create custom types, taxonomies and fields for your theme or plugin, without requiring any plugin.
11
 
embedded/resources/js/post-relationship.js CHANGED
@@ -453,6 +453,10 @@ jQuery(document).ready(function($) {
453
  }
454
  }
455
  $('#wpcf-post-relationship .wpcf-pr-pagination-select').trigger('change');
 
 
 
 
456
  }
457
  });
458
  return false;
@@ -513,6 +517,10 @@ jQuery(document).ready(function($) {
513
  $button.next().fadeOut(function() {
514
  $(this).remove();
515
  });
 
 
 
 
516
  }
517
  });
518
  return false;
453
  }
454
  }
455
  $('#wpcf-post-relationship .wpcf-pr-pagination-select').trigger('change');
456
+ /**
457
+ * select2
458
+ */
459
+ wpcfBindSelect2($);
460
  }
461
  });
462
  return false;
517
  $button.next().fadeOut(function() {
518
  $(this).remove();
519
  });
520
+ /**
521
+ * select2
522
+ */
523
+ wpcfBindSelect2($);
524
  }
525
  });
526
  return false;
includes/ajax.php CHANGED
@@ -123,6 +123,7 @@ function wpcf_ajax()
123
  );
124
  die;
125
  }
 
126
  /**
127
  * do not check actions from other places
128
  */
123
  );
124
  die;
125
  }
126
+ break;
127
  /**
128
  * do not check actions from other places
129
  */
includes/fields-form.php CHANGED
@@ -1301,7 +1301,11 @@ function wpcf_fields_get_field_form_data( $type, $form_data = array() ) {
1301
  * only for post meta
1302
  *
1303
  */
1304
- if ( 'postmeta' == $form_data['meta_type'] && function_exists( 'wpml_cf_translation_preferences' ) ) {
 
 
 
 
1305
  $custom_field = !empty( $form_data['slug'] ) ? wpcf_types_get_meta_prefix( $form_data ) . $form_data['slug'] : false;
1306
  $suppress_errors = $custom_field == false ? true : false;
1307
  $translatable = array('textfield', 'textarea', 'wysiwyg');
1301
  * only for post meta
1302
  *
1303
  */
1304
+ if (
1305
+ isset($form_data['meta_type'])
1306
+ && 'postmeta' == $form_data['meta_type']
1307
+ && function_exists( 'wpml_cf_translation_preferences' )
1308
+ ) {
1309
  $custom_field = !empty( $form_data['slug'] ) ? wpcf_types_get_meta_prefix( $form_data ) . $form_data['slug'] : false;
1310
  $suppress_errors = $custom_field == false ? true : false;
1311
  $translatable = array('textfield', 'textarea', 'wysiwyg');
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: CMS, custom field, custom fields, custom post type, custom post types, fie
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.3
8
- Stable tag: 1.8.3
9
 
10
  The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
11
 
@@ -155,6 +155,12 @@ Additionally, Types is the only plugin that lets you define parent/child relatio
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
 
158
  = 1.8.3 =
159
 
160
  * Release date: 2015-08-31
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.3
8
+ Stable tag: 1.8.4
9
 
10
  The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
11
 
155
 
156
  == Changelog ==
157
 
158
+ = 1.8.4 =
159
+
160
+ * Release date: 2015-09-01
161
+ * Fixed a problem with display post parent in post children table after pagination.
162
+ * Fixed a problem with some AJAX action (can't add new field, can't choose child fields, etc. etc.)
163
+
164
  = 1.8.3 =
165
 
166
  * Release date: 2015-08-31
wpcf.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
- Version: 1.8.3
9
  */
10
  /**
11
  *
@@ -16,7 +16,7 @@ if ( !defined( 'WPCF_VERSION' ) ) {
16
  /**
17
  * make sure that WPCF_VERSION in embedded/bootstrap.php is the same!
18
  */
19
- define( 'WPCF_VERSION', '1.8.3' );
20
  }
21
 
22
  define( 'WPCF_REPOSITORY', 'http://api.wp-types.com/' );
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
+ Version: 1.8.4
9
  */
10
  /**
11
  *
16
  /**
17
  * make sure that WPCF_VERSION in embedded/bootstrap.php is the same!
18
  */
19
+ define( 'WPCF_VERSION', '1.8.4' );
20
  }
21
 
22
  define( 'WPCF_REPOSITORY', 'http://api.wp-types.com/' );