Plugin Directory

Changeset 2900808


Ignore:
Timestamp:
04/18/2023 03:33:08 PM (3 years ago)
Author:
frpet
Message:

Fix list post type in translation

Location:
easytranslate/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • easytranslate/trunk/README.txt

    r2900799 r2900808  
    55Requires at least: 4.7
    66Tested up to: 6.1
    7 Stable tag: 4.15
     7Stable tag: 4.16
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • easytranslate/trunk/admin/class-easy-translate-post-translation-list.php

    r2867888 r2900808  
    171171        }
    172172
    173         if (isset($_GET['post_type']) && $_GET['post_type'] != '') {
    174             $a_where[] = 'post_type = "' . esc_sql($_GET['post_type']) . '"';
     173        if (isset($_REQUEST['post_type']) && $_REQUEST['post_type'] != '') {
     174            $a_where[] = 'post_type = "' . esc_sql($_REQUEST['post_type']) . '"';
    175175        }
    176176
     
    345345            $service = new Easy_Translate_API_Laas(Easy_Translate_API_Integration::map_fields($options));
    346346            $response = $service->translate(
    347                 $_REQUEST['source_language'] ?? $this->source_language,
     347                $this->source_language,
    348348                array_keys($_REQUEST['target_languages']),
    349349                $content,
  • easytranslate/trunk/easy-translate.php

    r2900799 r2900808  
    1515 * Plugin URI:        https://www.easytranslate.com/en/integrations/cms/wordpress-plugin/
    1616 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    17  * Version:           1.10.1
     17 * Version:           1.10.2
    1818 * Author:            EasyTranslate
    1919 * Author URI:        https://easytranslate.com
Note: See TracChangeset for help on using the changeset viewer.