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

Version Description

  • Release date: 2015-08-2517
  • Fixed a problem with select2 and new child posts.
Download this release

Release Info

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

Code changes from version 1.8 to 1.8.1

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' );
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.1' );
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
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.1
9
  */
10
  /**
11
  *
embedded/readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://wp-types.com
4
  Tags: CMS, custom field, custom fields, custom post type, custom post types, field, fields post, post type, post types, taxonomies, taxonomy
5
  License: GPLv2
6
  Requires at least: 3.4
7
- Tested up to: 4.2.4
8
- Stable tag: 1.8
9
 
10
  The Embedded version lets you create custom types, taxonomies and fields for your theme or plugin, without requiring any plugin.
11
 
4
  Tags: CMS, custom field, custom fields, custom post type, custom post types, field, fields post, post type, post types, taxonomies, taxonomy
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
 
embedded/resources/css/post-relationship.css CHANGED
@@ -85,6 +85,10 @@
85
  #wpcf-post-relationship table .textfield {
86
  width: 100px !important;
87
  }
 
 
 
 
88
  #wpcf-post-relationship table .form-item-radio {
89
  white-space: nowrap;
90
  margin: 0;
85
  #wpcf-post-relationship table .textfield {
86
  width: 100px !important;
87
  }
88
+ #wpcf-post-relationship .wpcf-pr-belongs
89
+ {
90
+ min-width: 300px;
91
+ }
92
  #wpcf-post-relationship table .form-item-radio {
93
  white-space: nowrap;
94
  margin: 0;
embedded/resources/js/post-relationship.js CHANGED
@@ -406,6 +406,10 @@ jQuery(document).ready(function($) {
406
  if ( 'undefined' != typeof wptFile ) {
407
  wptFile.init();
408
  }
 
 
 
 
409
  }
410
  });
411
  return false;
@@ -657,6 +661,10 @@ jQuery(document).ready(function($) {
657
  if ('undefined' != typeof data.errors && 0 < data.errors.length ) {
658
  $('#wpcf-post-relationship h3.hndle').after(data.errors);
659
  }
 
 
 
 
660
  }
661
  }
662
  });
@@ -735,6 +743,10 @@ jQuery(document).ready(function($) {
735
  $('#wpcf-post-relationship h3.hndle').after(data.errors);
736
  }
737
  }
 
 
 
 
738
  }
739
  });
740
  return false;
@@ -885,7 +897,7 @@ function wpcfRelationshipInit(selector, context) {
885
  /**
886
  * select2
887
  */
888
- jQuery(document).ready(function($) {
889
  $('.wpcf-pr-belongs').select2({
890
  id: function(item){
891
  return item.ID;
@@ -968,5 +980,8 @@ jQuery(document).ready(function($) {
968
  $('a.button', $(data.target)).addClass('disabled').attr('href', '#');
969
  });
970
  });
 
 
 
971
  });
972
 
406
  if ( 'undefined' != typeof wptFile ) {
407
  wptFile.init();
408
  }
409
+ /**
410
+ * select2
411
+ */
412
+ wpcfBindSelect2($);
413
  }
414
  });
415
  return false;
661
  if ('undefined' != typeof data.errors && 0 < data.errors.length ) {
662
  $('#wpcf-post-relationship h3.hndle').after(data.errors);
663
  }
664
+ /**
665
+ * select2
666
+ */
667
+ wpcfBindSelect2($);
668
  }
669
  }
670
  });
743
  $('#wpcf-post-relationship h3.hndle').after(data.errors);
744
  }
745
  }
746
+ /**
747
+ * select2
748
+ */
749
+ wpcfBindSelect2($);
750
  }
751
  });
752
  return false;
897
  /**
898
  * select2
899
  */
900
+ function wpcfBindSelect2($) {
901
  $('.wpcf-pr-belongs').select2({
902
  id: function(item){
903
  return item.ID;
980
  $('a.button', $(data.target)).addClass('disabled').attr('href', '#');
981
  });
982
  });
983
+ }
984
+ jQuery(document).ready(function($) {
985
+ wpcfBindSelect2($);
986
  });
987
 
embedded/views/editor-modal-window.php CHANGED
@@ -200,12 +200,12 @@ $data = array_merge(
200
 
201
  <p class="form-inline">
202
  <input type="radio" id="post-id" name="post_id" value="post_id" data-bind="checked: relatedPost" />
203
- <label for="post-id"><?php _e( 'A specific post', 'wpcf' ); ?></label>
204
  </p>
205
  <div class="group-nested" data-bind="visible: relatedPost() == 'post_id'">
206
  <p class="form-inline">
207
  <label for="post-id-post_id"><?php _e( 'Post selection', 'wpcf' ); ?></label>
208
- <input type="text" id="post-id-post_id" name="specific_post_id" data-bind="value: specificPostID" />
209
  </p>
210
  </div>
211
 
200
 
201
  <p class="form-inline">
202
  <input type="radio" id="post-id" name="post_id" value="post_id" data-bind="checked: relatedPost" />
203
+ <label for="post-id"><?php _e( 'A specific post ID', 'wpcf' ); ?></label>
204
  </p>
205
  <div class="group-nested" data-bind="visible: relatedPost() == 'post_id'">
206
  <p class="form-inline">
207
  <label for="post-id-post_id"><?php _e( 'Post selection', 'wpcf' ); ?></label>
208
+ <input type="number" id="post-id-post_id" name="specific_post_id" data-bind="value: specificPostID" />
209
  </p>
210
  </div>
211
 
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
9
 
10
  The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
11
 
@@ -155,6 +155,11 @@ Additionally, Types is the only plugin that lets you define parent/child relatio
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
158
  = 1.8 =
159
 
160
  * Release date: 2015-08-17
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.3
8
+ Stable tag: 1.8.1
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.1 =
159
+
160
+ * Release date: 2015-08-2517
161
+ * Fixed a problem with select2 and new child posts.
162
+
163
  = 1.8 =
164
 
165
  * Release date: 2015-08-17
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
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' );
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.1
9
  */
10
  /**
11
  *
16
  /**
17
  * make sure that WPCF_VERSION in embedded/bootstrap.php is the same!
18
  */
19
+ define( 'WPCF_VERSION', '1.8.1' );
20
  }
21
 
22
  define( 'WPCF_REPOSITORY', 'http://api.wp-types.com/' );