Lingotek Translation - Version 1.4.12

Version Description

(2021-5-6) = * Changed deprecated Polylang method

Download this release

Release Info

Developer lopez93
Plugin Icon 128x128 Lingotek Translation
Version 1.4.12
Comparing to
See all releases

Code changes from version 1.4.11 to 1.4.12

Files changed (3) hide show
  1. include/group-post.php +1 -1
  2. lingotek.php +2 -2
  3. readme.txt +4 -1
include/group-post.php CHANGED
@@ -383,7 +383,7 @@ class Lingotek_Group_Post extends Lingotek_Group {
383
  $tr_post['ID'] = null; // will force the creation of a new post
384
 
385
  // translate parent
386
- $tr_post['post_parent'] = ($post->post_parent && $tr_parent = $this->pllm->get_translation('post', $post->post_parent, $locale)) ? $tr_parent : 0;
387
 
388
  if ('attachment' == $post->post_type) {
389
  $tr_id = wp_insert_attachment($tr_post);
383
  $tr_post['ID'] = null; // will force the creation of a new post
384
 
385
  // translate parent
386
+ $tr_post['post_parent'] = ($post->post_parent && $tr_parent = $this->pllm->post->get_translation($post->post_parent, $locale)) ? $tr_parent : 0;
387
 
388
  if ('attachment' == $post->post_type) {
389
  $tr_id = wp_insert_attachment($tr_post);
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.4.11
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
@@ -16,7 +16,7 @@ if ( ! function_exists( 'add_action' ) ) {
16
  exit();
17
  }
18
 
19
- define( 'LINGOTEK_VERSION', '1.4.11' ); // plugin version (should match above meta).
20
  define( 'LINGOTEK_MIN_PLL_VERSION', '1.8' );
21
  define( 'LINGOTEK_BASENAME', plugin_basename( __FILE__ ) ); // plugin name as known by WP.
22
  define( 'LINGOTEK_PLUGIN_SLUG', 'lingotek-translation' );// 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.4.12
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
16
  exit();
17
  }
18
 
19
+ define( 'LINGOTEK_VERSION', '1.4.12' ); // plugin version (should match above meta).
20
  define( 'LINGOTEK_MIN_PLL_VERSION', '1.8' );
21
  define( 'LINGOTEK_BASENAME', plugin_basename( __FILE__ ) ); // plugin name as known by WP.
22
  define( 'LINGOTEK_PLUGIN_SLUG', 'lingotek-translation' );// 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: 5.6
7
- Stable tag: 1.4.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -122,6 +122,9 @@ For more, visit the [Lingotek documentation site](https://lingotek.atlassian.net
122
  5. The Lingotek Translation plugin provides the ability to Copy, Translate, and Ignore each specific custom field. Our plugin supports Wordpress custom fields and advanced custom fields.
123
 
124
  == Changelog ==
 
 
 
125
  = 1.4.11 (2021-5-4) =
126
  * Fixed bug that re-uploaded documents instead of patching them
127
  * Removed unsupported content type custom field settings
4
  Tags: automation, bilingual, international, language, Lingotek, localization, multilanguage, multilingual, translate, translation
5
  Requires at least: 3.8
6
  Tested up to: 5.6
7
+ Stable tag: 1.4.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
122
  5. The Lingotek Translation plugin provides the ability to Copy, Translate, and Ignore each specific custom field. Our plugin supports Wordpress custom fields and advanced custom fields.
123
 
124
  == Changelog ==
125
+ = 1.4.12 (2021-5-6) =
126
+ * Changed deprecated Polylang method
127
+
128
  = 1.4.11 (2021-5-4) =
129
  * Fixed bug that re-uploaded documents instead of patching them
130
  * Removed unsupported content type custom field settings