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

Version Description

  • Release date: 2015-10-20
  • Add check to do not translate if value to translate is empty or not a string.
Download this release

Release Info

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

Code changes from version 1.8.7 to 1.8.7.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.7' );
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.1' );
160
  define( 'WPCF_META_PREFIX', 'wpcf-' );
161
  }
162
 
embedded/includes/wpml.php CHANGED
@@ -149,12 +149,21 @@ function wpcf_wpml_init() {
149
  * WPML translate call.
150
  *
151
  * @param string $name name of translated string
152
- * @param string $string string to translate
153
  * @param string $context context of translation
154
  * @return string translated string
155
  */
156
  function wpcf_translate( $name, $string, $context = 'plugin Types' )
157
  {
 
 
 
 
 
 
 
 
 
158
  return apply_filters(
159
  'wpml_translate_single_string',
160
  stripslashes( $string ),
149
  * WPML translate call.
150
  *
151
  * @param string $name name of translated string
152
+ * @param mixed $string value to translate, but process only strings
153
  * @param string $context context of translation
154
  * @return string translated string
155
  */
156
  function wpcf_translate( $name, $string, $context = 'plugin Types' )
157
  {
158
+ /**
159
+ * do not translate if $string is not a string or is empty
160
+ */
161
+ if ( empty($string) || !is_string($string) ) {
162
+ return $string;
163
+ }
164
+ /**
165
+ * translate
166
+ */
167
  return apply_filters(
168
  'wpml_translate_single_string',
169
  stripslashes( $string ),
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
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.1
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
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.1
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
9
 
10
  The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
11
 
@@ -155,11 +155,15 @@ Additionally, Types is the only plugin that lets you define parent/child relatio
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
158
  = 1.8.7 =
159
 
160
- * Release date: 2015-10-xx
161
  * Fixed a problem with shortcode playlist.
162
- * Improved Types and WPML integration.
163
  * Fixed a problem with backslash in WYSIWYG field name.
164
  * Improve WPML integration, replace `icl_t()` by filter `wpml_translate_single_string`.
165
  * Change Installer version to 1.6.7 - to reduce requests to Toolset API.
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
 
156
  == Changelog ==
157
 
158
+ = 1.8.7.1 =
159
+
160
+ * Release date: 2015-10-20
161
+ * Add check to do not translate if value to translate is empty or not a string.
162
+
163
  = 1.8.7 =
164
 
165
+ * Release date: 2015-10-18
166
  * Fixed a problem with shortcode playlist.
 
167
  * Fixed a problem with backslash in WYSIWYG field name.
168
  * Improve WPML integration, replace `icl_t()` by filter `wpml_translate_single_string`.
169
  * Change Installer version to 1.6.7 - to reduce requests to Toolset API.
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
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' );
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.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.7.1' );
20
  }
21
 
22
  define( 'WPCF_REPOSITORY', 'http://api.wp-types.com/' );