Lingotek Translation - Version 1.0.8

Version Description

(2015-08-19) =

  • Fixed custom fields error upon saving or updating posts
Download this release

Release Info

Developer smithworx
Plugin Icon 128x128 Lingotek Translation
Version 1.0.8
Comparing to
See all releases

Code changes from version 1.0.7 to 1.0.8

Files changed (3) hide show
  1. include/group-post.php +3 -3
  2. lingotek.php +2 -2
  3. readme.txt +5 -1
include/group-post.php CHANGED
@@ -106,7 +106,7 @@ class Lingotek_Group_Post extends Lingotek_Group {
106
  * @return array
107
  */
108
  static public function get_custom_fields_from_wp_postmeta($post_ID = NULL) {
109
- $custom_fields = get_option('lingotek_custom_fields');
110
  $arr = array();
111
  $keys = array();
112
 
@@ -153,7 +153,7 @@ class Lingotek_Group_Post extends Lingotek_Group {
153
  public static function get_updated_meta_values($post_ID = NULL) {
154
  $custom_fields_from_wpml = self::get_custom_fields_from_wpml();
155
  $custom_fields_from_postmeta = self::get_custom_fields_from_wp_postmeta($post_ID);
156
- $custom_fields_from_lingotek = get_option('lingotek_custom_fields');
157
  $custom_fields = array();
158
  $items = array();
159
 
@@ -332,7 +332,7 @@ class Lingotek_Group_Post extends Lingotek_Group {
332
  $GLOBALS['polylang']->sync->copy_post_metas($this->source, $tr_id, $tr_lang->slug);
333
 
334
  // copy or ignore metas
335
- $custom_fields = get_option('lingotek_custom_fields');
336
  foreach ($custom_fields as $key => $setting) {
337
  if ('copy' === $setting) {
338
  $source_meta = current(get_post_meta($post->ID, $key)) ;
106
  * @return array
107
  */
108
  static public function get_custom_fields_from_wp_postmeta($post_ID = NULL) {
109
+ $custom_fields = get_option('lingotek_custom_fields', array());
110
  $arr = array();
111
  $keys = array();
112
 
153
  public static function get_updated_meta_values($post_ID = NULL) {
154
  $custom_fields_from_wpml = self::get_custom_fields_from_wpml();
155
  $custom_fields_from_postmeta = self::get_custom_fields_from_wp_postmeta($post_ID);
156
+ $custom_fields_from_lingotek = get_option('lingotek_custom_fields', array());
157
  $custom_fields = array();
158
  $items = array();
159
 
332
  $GLOBALS['polylang']->sync->copy_post_metas($this->source, $tr_id, $tr_lang->slug);
333
 
334
  // copy or ignore metas
335
+ $custom_fields = get_option('lingotek_custom_fields', array());
336
  foreach ($custom_fields as $key => $setting) {
337
  if ('copy' === $setting) {
338
  $source_meta = current(get_post_meta($post->ID, $key)) ;
lingotek.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin name: Lingotek Translation
4
  Plugin URI: http://lingotek.com/wordpress#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wplingotektranslationplugin
5
- Version: 1.0.7
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
@@ -15,7 +15,7 @@ GitHub Plugin URI: https://github.com/lingotek/wp-lingotek
15
  if (!function_exists('add_action'))
16
  exit();
17
 
18
- define('LINGOTEK_VERSION', '1.0.7'); // plugin version (should match above meta)
19
  define('LINGOTEK_MIN_PLL_VERSION', '1.7.4.2');
20
  define('LINGOTEK_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
21
  define('LINGOTEK_PLUGIN_SLUG', 'wp-lingotek');// plugin slug (should match above meta: Text Domain)
2
  /*
3
  Plugin name: Lingotek Translation
4
  Plugin URI: http://lingotek.com/wordpress#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wplingotektranslationplugin
5
+ Version: 1.0.8
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
15
  if (!function_exists('add_action'))
16
  exit();
17
 
18
+ define('LINGOTEK_VERSION', '1.0.8'); // plugin version (should match above meta)
19
  define('LINGOTEK_MIN_PLL_VERSION', '1.7.4.2');
20
  define('LINGOTEK_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
21
  define('LINGOTEK_PLUGIN_SLUG', 'wp-lingotek');// plugin slug (should match above meta: Text Domain)
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://lingotek.com/
4
  Tags: automation, bilingual, international, language, Lingotek, localization, multilanguage, multilingual, translate, translation
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
- Stable tag: 1.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -115,6 +115,10 @@ For more, visit the [Lingotek documentation site](https://lingotek.atlassian.net
115
 
116
  == Changelog ==
117
 
 
 
 
 
118
  = 1.0.7 (2015-08-18) =
119
 
120
  * Enhanced custom field support including compatibility with user created custom fields, the Advanced Custom Fields (ACF) plugin, and the use of language configuration files (i.e., wpml-config.xml) for default settings.
4
  Tags: automation, bilingual, international, language, Lingotek, localization, multilanguage, multilingual, translate, translation
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 1.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
115
 
116
  == Changelog ==
117
 
118
+ = 1.0.8 (2015-08-19) =
119
+
120
+ * Fixed custom fields error upon saving or updating posts
121
+
122
  = 1.0.7 (2015-08-18) =
123
 
124
  * Enhanced custom field support including compatibility with user created custom fields, the Advanced Custom Fields (ACF) plugin, and the use of language configuration files (i.e., wpml-config.xml) for default settings.