Plugin Directory

Changeset 1381157


Ignore:
Timestamp:
03/29/2016 03:37:41 PM (10 years ago)
Author:
erichie
Message:

stable release, fixed a bug that prevented the language of taxonomies from being set

Location:
lingotek-translation
Files:
90 added
5 edited

Legend:

Unmodified
Added
Removed
  • lingotek-translation/trunk/admin/filters-columns.php

    r1352129 r1381157  
    117117
    118118        // if language is set to copy and profile is manual
    119         elseif ((isset($source_profile['targets'][$language->slug]) && $source_profile['targets'][$language->slug] == 'copy') || (isset($profile['targets'][$language->slug]) && $profile['targets'][$language->slug] == 'copy') && isset($document->source)) {
     119        elseif (($type == 'post') && ((isset($source_profile['targets'][$language->slug]) && $source_profile['targets'][$language->slug] == 'copy') || (isset($profile['targets'][$language->slug]) && $profile['targets'][$language->slug] == 'copy') && isset($document->source))) {
    120120            if (isset($document->desc_array[$language->slug])) {
    121121                return 'post' == $type ? parent::post_column($column, $object_id) : parent::term_column('', $column, $object_id);
  • lingotek-translation/trunk/include/group-post.php

    r1352129 r1381157  
    233233     */
    234234    public static function get_content($post) {
     235        $arr = array();
    235236        $fields = self::get_content_type_fields($post->post_type, $post->ID);
    236237        $content_types = get_option('lingotek_content_type');
  • lingotek-translation/trunk/include/model.php

    r1352129 r1381157  
    249249
    250250        if (!is_wp_error($new_term)) {
    251             PLL()->model->post->set_language($new_term['term_id'], $cp_lang);
     251            PLL()->model->term->set_language($new_term['term_id'], $cp_lang);
    252252            wp_set_object_terms($new_term['term_id'], $document->term_id, 'term_translations');
    253253            $document->desc_array[$target] = $new_term['term_id'];
  • lingotek-translation/trunk/lingotek.php

    r1352129 r1381157  
    33Plugin name: Lingotek Translation
    44Plugin URI: http://lingotek.com/wordpress#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wplingotektranslationplugin
    5 Version: 1.1.11
     5Version: 1.2
    66Author: Lingotek and Frédéric Demarle
    77Author uri: http://lingotek.com
     
    1616    exit();
    1717
    18 define('LINGOTEK_VERSION', '1.1.11'); // plugin version (should match above meta)
     18define('LINGOTEK_VERSION', '1.2'); // plugin version (should match above meta)
    1919define('LINGOTEK_MIN_PLL_VERSION', '1.8');
    2020define('LINGOTEK_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
  • lingotek-translation/trunk/readme.txt

    r1352129 r1381157  
    55Requires at least: 3.8
    66Tested up to: 4.4
    7 Stable tag: 1.1.11
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    123123== Changelog ==
    124124
     125= 1.2 (2016-3-29) =
     126
     127* Fixed a bug that prevented the language of translated taxonomies to be set
     128* Other minor fixes
     129
    125130= 1.1.11 (2016-2-16) =
    126131
Note: See TracChangeset for help on using the changeset viewer.