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

Version Description

  • Release date: 2015-10-28
  • Fixed the problem with select post parent if WPML is active.
  • Replaced sum of array by array merge to avoid losing values.
Download this release

Release Info

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

Code changes from version 1.8.7.1 to 1.8.7.2

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.7.1' );
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.7.2' );
160
  define( 'WPCF_META_PREFIX', 'wpcf-' );
161
  }
162
 
embedded/includes/post-relationship.php CHANGED
@@ -554,7 +554,7 @@ function wpcf_relationship_is_parent( $parent_post_type, $child_post_type ) {
554
 
555
  function wpcf_pr_admin_wpcf_relationship_check($keys_to_check = array())
556
  {
557
- $keys_to_check += array('nounce', 'post_id', 'post_type');
558
  foreach( $keys_to_check as $key ) {
559
  if ( !isset($_REQUEST[$key] ) ) {
560
  die(__('Sorry, something went wrong. The requested can not be completed.', 'wpcf'));
@@ -610,7 +610,10 @@ function wpcf_pr_admin_wpcf_relationship_search()
610
  $item_lang = apply_filters( 'wpml_element_language_code', NULL, $args );
611
 
612
  // unset the item if not in the current language
613
- if ( $item_lang != $active_lang ) {
 
 
 
614
  unset( $posts['items'][ $key ] );
615
  $posts['total_count']--;
616
  }
554
 
555
  function wpcf_pr_admin_wpcf_relationship_check($keys_to_check = array())
556
  {
557
+ $keys_to_check = array_unique(array_merge($keys_to_check, array('nounce', 'post_id', 'post_type')));
558
  foreach( $keys_to_check as $key ) {
559
  if ( !isset($_REQUEST[$key] ) ) {
560
  die(__('Sorry, something went wrong. The requested can not be completed.', 'wpcf'));
610
  $item_lang = apply_filters( 'wpml_element_language_code', NULL, $args );
611
 
612
  // unset the item if not in the current language
613
+ if (
614
+ !is_null($item_lang)
615
+ && $item_lang != $active_lang
616
+ ) {
617
  unset( $posts['items'][ $key ] );
618
  $posts['total_count']--;
619
  }
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.7.1
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.7.2
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,1
8
- Stable tag: 1.8.7.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,1
8
+ Stable tag: 1.8.7.2
9
 
10
  The Embedded version lets you create custom types, taxonomies and fields for your theme or plugin, without requiring any plugin.
11
 
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.1
8
- Stable tag: 1.8.7.1
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.7.1 =
159
 
160
  * Release date: 2015-10-20
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.3.1
8
+ Stable tag: 1.8.7.2
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.7.2 =
159
+
160
+ * Release date: 2015-10-28
161
+ * Fixed the problem with select post parent if WPML is active.
162
+ * Replaced sum of array by array merge to avoid losing values.
163
+
164
  = 1.8.7.1 =
165
 
166
  * Release date: 2015-10-20
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.7.1
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.7.1' );
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.7.2
9
  */
10
  /**
11
  *
16
  /**
17
  * make sure that WPCF_VERSION in embedded/bootstrap.php is the same!
18
  */
19
+ define( 'WPCF_VERSION', '1.8.7.2' );
20
  }
21
 
22
  define( 'WPCF_REPOSITORY', 'http://api.wp-types.com/' );