Plugin Directory

Changeset 2489680

Timestamp:
03/08/2021 03:50:45 PM (3 years ago)
Author:
madalin.ungureanu
Message:

tagging version 1.9.6

Location:
translatepress-multilingual
Files:
2 added
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • translatepress-multilingual/tags/1.9.6/class-translate-press.php

    r2479178 r2489680  
    5858        define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
    5959        define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
    60         define( 'TRP_PLUGIN_VERSION', '1.9.5' );
     60        define( 'TRP_PLUGIN_VERSION', '1.9.' );
    6161
    6262        wp_cache_add_non_persistent_groups(array('trp'));
  • translatepress-multilingual/tags/1.9.6/includes/advanced-settings/do-not-translate-certain-paths.php

    r2479178 r2489680  
    103103    if( empty( $current_slug ) || $current_slug == '/' )
    104104        $current_slug = "{{home}}";
     105
     106
    105107
    106108    if( $advanced_settings['translateable_content']['option'] == 'exclude' ){
     
    170172    if( empty( $current_slug ) || $current_slug == '/' )
    171173        $current_slug = "{{home}}";
     174
     175
    172176
    173177    if( $advanced_settings['translateable_content']['option'] == 'exclude' ){
     
    206210
    207211    if( isset( $_GET['trp-edit-translation'] ) && ( $_GET['trp-edit-translation'] == 'true' || $_GET['trp-edit-translation'] == 'preview' ) )
    208         return $redirect;
     212        return;
    209213
    210214    if( isset( $_GET['trp-string-translation'] ) && $_GET['trp-string-translation'] == 'true' )
    211         return $redirect;
     215        return;
    212216
    213217    if( is_admin() )
  • translatepress-multilingual/tags/1.9.6/includes/class-query.php

    r2454041 r2489680  
    1212    public $db;
    1313    protected $settings;
     14
    1415    protected $translation_render;
    1516    protected $error_manager;
    1617    protected $tables_exist = array();
     18
    1719
    1820    const NOT_TRANSLATED = 0;
     
    656658
    657659        $on_duplicate = ' ON DUPLICATE KEY UPDATE ';
     660
    658661        foreach ( $columns_to_update as $column ) {
    659662            if ( $column == 'id' ){
    660663                continue;
    661664            }
    662             $on_duplicate .= $column . '=VALUES(' . $column . '),';
     665            $on_duplicate .= $column . '=(' . $column . '),';
    663666        }
    664667        $query .= implode( ', ', $place_holders );
     
    796799
    797800        $on_duplicate = ' ON DUPLICATE KEY UPDATE ';
     801
    798802        foreach ( $columns_to_update as $column ) {
    799803            if ( $column == 'id' ){
    800804                continue;
    801805            }
    802             $on_duplicate .= $column . '=VALUES(' . $column . '),';
     806(' . $column . '),';
    803807        }
    804808        $query .= implode( ', ', $place_holders );
     
    12821286    public function maybe_record_automatic_translation_error($error_details = array(), $ignore_last_error = false ){
    12831287        if ( !empty( $this->db->last_error) || $ignore_last_error ){
     1288
    12841289            if( !$this->error_manager ){
    1285                 $trp = TRP_Translate_Press::get_trp_instance();
    12861290                $this->error_manager = $trp->get_component( 'error_manager' );
    12871291            }
     1292
     1293
     1294
     1295
    12881296            $default_error_details = array(
    12891297                'last_error'  => $this->db->last_error,
    1290                 'disable_automatic_translations' => true
     1298                'disable_automatic_translations' => true,
     1299                'url' => $this->url_converter->cur_page_url(),
    12911300            );
    12921301            $error_details = array_merge( $default_error_details, $error_details );
     
    13991408        return $this->db->query( $sql );
    14001409    }
     1410
     1411
     1412
     1413
     1414
     1415
     1416
     1417
     1418
     1419
     1420
     1421
     1422
     1423
     1424
     1425
     1426
     1427
     1428
     1429
     1430
     1431
     1432
     1433
     1434
     1435
     1436
     1437
     1438
     1439
     1440
     1441
     1442
     1443
     1444
     1445
     1446
     1447
     1448
     1449
     1450
     1451
     1452
     1453
    14011454}
  • translatepress-multilingual/tags/1.9.6/includes/class-translation-manager.php

    r2455517 r2489680  
    523523
    524524
    525         global $trp_translated_gettext_texts;
    526         if (!is_admin() || $this::is_ajax_on_frontend()) {
     525        global $trp_translated_gettext_texts;
     526        if ({
    527527            $language = get_locale();
    528528
    529             if (!$this->trp_query) {
     529            if ( in_array( $language, $this->settings['translation-languages'] ) ) {
     530                $trp_translated_gettext_texts_language = $language;
    530531                $trp = TRP_Translate_Press::get_trp_instance();
    531                 $this->trp_query = $trp->get_component('query');
    532             }
    533 
    534             $strings = $this->trp_query->get_all_gettext_strings($language);
    535             if (!empty($strings)) {
    536                 $trp_translated_gettext_texts = $strings;
    537 
    538                 foreach ($trp_translated_gettext_texts as $key => $value) {
    539                     $trp_strings[$value['domain'] . '::' . $value['original']] = $value;
    540                 }
    541                 $trp_translated_gettext_texts = $trp_strings;
     532                if ( !$this->trp_query ) {
     533                    $this->trp_query = $trp->get_component( 'query' );
     534                }
     535
     536                $strings = $this->trp_query->get_all_gettext_strings( $language );
     537                if ( !empty( $strings ) ) {
     538                    $trp_translated_gettext_texts = $strings;
     539
     540                    foreach ( $trp_translated_gettext_texts as $key => $value ) {
     541                        $trp_strings[ $value['domain'] . '::' . $value['original'] ] = $value;
     542                    }
     543                    $trp_translated_gettext_texts = $trp_strings;
     544                }
    542545            }
    543546        }
     
    584587    }
    585588
    586     public function call_gettext_filters($prefix = '')
    587     {
     589    public function processing_gettext_is_needed(){
    588590        global $pagenow;
    589591
     
    597599
    598600        // Do not process gettext strings on wp-login pages. Do not process strings in admin area except for when when is_ajax_on_frontend. Do not process gettext strings when is rest api from admin url referer. Do not process gettext on xmlrpc.pho
    599         if (($pagenow != 'wp-login.php') && (!is_admin() || $this::is_ajax_on_frontend()) && !$this->is_admin_request && $pagenow != 'xmlrpc.php') {
     601        return (($pagenow != 'wp-login.php') && (!is_admin() || $this::is_ajax_on_frontend()) && !$this->is_admin_request && $pagenow != 'xmlrpc.php');
     602    }
     603
     604    public function call_gettext_filters($prefix = '') {
     605        if ( $this->processing_gettext_is_needed() ){
    600606            add_filter('gettext', array($this, $prefix . 'process_gettext_strings'), 100, 3);
    601607            add_filter('gettext_with_context', array($this, $prefix . 'process_gettext_strings_with_context'), 100, 4);
     
    777783        /* get_locale() returns WP Settings Language (WPLANG). It might not be a language in TP so it may not have a TP table. */
    778784        $current_locale = get_locale();
    779         if (!in_array($current_locale, $this->settings['translation-languages'])) {
     785        global $trp_translated_gettext_texts_language;
     786        if ( !in_array($current_locale, $this->settings['translation-languages'] ) || empty( $trp_translated_gettext_texts_language) || $trp_translated_gettext_texts_language !== $current_locale ) {
    780787            return $translation;
    781788        }
  • translatepress-multilingual/tags/1.9.6/includes/compatibility-functions.php

    r2479178 r2489680  
    4343add_filter( 'nav_menu_link_attributes', 'trp_remove_html_from_menu_title', 10, 3);
    4444function trp_remove_html_from_menu_title( $atts, $item, $args ){
    45     $atts['title'] = wp_strip_all_tags($atts['title']);
     45    if( isset( $atts['title'] ) )
     46        $atts['title'] = wp_strip_all_tags($atts['title']);
     47       
    4648    return $atts;
    4749}
     
    840842}
    841843
    842 /**
    843  * Used to redirect Oxygen Builder front-end to the default language.
    844  * Hooked before TRP_Language_Switcher::redirect_to_correct_language() so we don't redirect twice
    845  */
    846 add_action( 'template_redirect', 'trp_page_builder_compatibility_redirect_to_default_language', 10 );
    847 function trp_page_builder_compatibility_redirect_to_default_language(){
    848 
    849     if( !is_admin() && ( ( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] == 'true' ) || isset( $_GET['fl_builder'] ) ) ){
    850 
    851         $trp           = TRP_Translate_Press::get_trp_instance();
    852         $url_converter = $trp->get_component('url_converter');
    853         $settings      = ( new TRP_Settings() )->get_settings();
    854 
    855         $current_url  = $url_converter->cur_page_url();
    856         $current_lang = $url_converter->get_lang_from_url_string( $current_url );
    857 
    858         if( ( $current_lang == null && $settings['add-subdirectory-to-default-language'] == 'yes' ) || ( $current_lang != null && $current_lang != $settings['default-language'] ) ){
    859             $link_to_redirect = $url_converter->get_url_for_language( $settings['default-language'], null, '' );
    860 
    861             wp_redirect( $link_to_redirect, 301 );
    862             exit;
     844if( function_exists( 'ct_is_show_builder' ) || defined( 'FL_BUILDER_VERSION' ) ){
     845
     846    /**
     847     * Used to redirect Oxygen Builder front-end to the default language.
     848     * Hooked before TRP_Language_Switcher::redirect_to_correct_language() so we don't redirect twice
     849     */
     850    add_action( 'template_redirect', 'trp_page_builder_compatibility_redirect_to_default_language', 10 );
     851    function trp_page_builder_compatibility_redirect_to_default_language(){
     852
     853        if( !is_admin() && ( ( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] == 'true' ) || isset( $_GET['fl_builder'] ) ) ){
     854
     855            $trp           = TRP_Translate_Press::get_trp_instance();
     856            $url_converter = $trp->get_component('url_converter');
     857            $settings      = ( new TRP_Settings() )->get_settings();
     858
     859            $current_url  = $url_converter->cur_page_url();
     860            $current_lang = $url_converter->get_lang_from_url_string( $current_url );
     861
     862            if( ( $current_lang == null && $settings['add-subdirectory-to-default-language'] == 'yes' ) || ( $current_lang != null && $current_lang != $settings['default-language'] ) ){
     863                $link_to_redirect = $url_converter->get_url_for_language( $settings['default-language'], null, '' );
     864
     865                if( $link_to_redirect != $current_url ){
     866                    wp_redirect( $link_to_redirect, 301 );
     867                    exit;
     868                }
     869
     870            }
     871
     872        }
     873
     874    }
     875
     876    /**
     877     * Disable automatic language redirect when the Oxygen or Beaver Builders are showing
     878     */
     879    add_action( 'plugins_loaded', 'trp_page_builder_compatibility_disable_automatic_language_redirect' );
     880    function trp_page_builder_compatibility_disable_automatic_language_redirect(){
     881
     882        if( ( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] == 'true' ) || isset( $_GET['fl_builder'] ) ){
     883
     884            $trp    = TRP_Translate_Press::get_trp_instance();
     885            $loader = $trp->get_component( 'loader' );
     886
     887            $loader->remove_hook( 'wp_enqueue_scripts', 'enqueue_cookie_adding' );
     888
    863889        }
    864890
     
    13531379     }
    13541380 }
    1355  
     1381
    13561382 function trp_mylisting_exclude_string( $translation, $text, $context, $domain ){
    13571383
  • translatepress-multilingual/tags/1.9.6/includes/external-functions.php

    r2336046 r2489680  
    115115    return $array;
    116116}
     117
     118
     119
     120
     121
     122
     123
     124
     125
  • translatepress-multilingual/tags/1.9.6/includes/trp-ajax.php

    r2411165 r2489680  
    2323
    2424        include './external-functions.php';
     25
     26
     27
     28
    2529
    2630        if ( $this->connect_to_db() ){
  • translatepress-multilingual/tags/1.9.6/index.php

    r2479178 r2489680  
    44Plugin URI: https://translatepress.com/
    55Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
    6 Version: 1.9.5
     6Version: 1.9.
    77Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
    88Author URI: https://cozmoslabs.com/
  • translatepress-multilingual/tags/1.9.6/languages/translatepress-multilingual.pot

    r2479178 r2489680  
    682682msgstr ""
    683683
    684 #: includes/class-translation-manager.php:1261
     684#: includes/class-translation-manager.php:126
    685685msgid "Security check"
    686686msgstr ""
    687687
    688 #: includes/class-translation-manager.php:1335
     688#: includes/class-translation-manager.php:13
    689689msgid "<strong>Warning:</strong> Some strings have possibly incorrectly encoded characters. This may result in breaking the queries, rendering the page untranslated in live mode. Consider revising the following strings or their method of outputting."
    690690msgstr ""
  • translatepress-multilingual/tags/1.9.6/readme.txt

    r2479178 r2489680  
    44Tags: translate, translation, multilingual, automatic translation, bilingual, front-end translation, google translate, language
    55Requires at least: 3.1.0
    6 Tested up to: 5.6.1
     6Tested up to: 5.6.
    77Requires PHP: 5.6.20
    8 Stable tag: 1.9.5
     8Stable tag: 1.9.
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    139139
    140140== Changelog ==
     141
     142
     143
     144
     145
     146
     147
     148
    141149= 1.9.5 =
    142150* Added setting that allows you to translate only certain paths or exclude certain paths from being translated.
  • translatepress-multilingual/trunk/class-translate-press.php

    r2479178 r2489680  
    5858        define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
    5959        define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
    60         define( 'TRP_PLUGIN_VERSION', '1.9.5' );
     60        define( 'TRP_PLUGIN_VERSION', '1.9.' );
    6161
    6262        wp_cache_add_non_persistent_groups(array('trp'));
  • translatepress-multilingual/trunk/includes/advanced-settings/do-not-translate-certain-paths.php

    r2479178 r2489680  
    103103    if( empty( $current_slug ) || $current_slug == '/' )
    104104        $current_slug = "{{home}}";
     105
     106
    105107
    106108    if( $advanced_settings['translateable_content']['option'] == 'exclude' ){
     
    170172    if( empty( $current_slug ) || $current_slug == '/' )
    171173        $current_slug = "{{home}}";
     174
     175
    172176
    173177    if( $advanced_settings['translateable_content']['option'] == 'exclude' ){
     
    206210
    207211    if( isset( $_GET['trp-edit-translation'] ) && ( $_GET['trp-edit-translation'] == 'true' || $_GET['trp-edit-translation'] == 'preview' ) )
    208         return $redirect;
     212        return;
    209213
    210214    if( isset( $_GET['trp-string-translation'] ) && $_GET['trp-string-translation'] == 'true' )
    211         return $redirect;
     215        return;
    212216
    213217    if( is_admin() )
  • translatepress-multilingual/trunk/includes/class-query.php

    r2454041 r2489680  
    1212    public $db;
    1313    protected $settings;
     14
    1415    protected $translation_render;
    1516    protected $error_manager;
    1617    protected $tables_exist = array();
     18
    1719
    1820    const NOT_TRANSLATED = 0;
     
    656658
    657659        $on_duplicate = ' ON DUPLICATE KEY UPDATE ';
     660
    658661        foreach ( $columns_to_update as $column ) {
    659662            if ( $column == 'id' ){
    660663                continue;
    661664            }
    662             $on_duplicate .= $column . '=VALUES(' . $column . '),';
     665            $on_duplicate .= $column . '=(' . $column . '),';
    663666        }
    664667        $query .= implode( ', ', $place_holders );
     
    796799
    797800        $on_duplicate = ' ON DUPLICATE KEY UPDATE ';
     801
    798802        foreach ( $columns_to_update as $column ) {
    799803            if ( $column == 'id' ){
    800804                continue;
    801805            }
    802             $on_duplicate .= $column . '=VALUES(' . $column . '),';
     806(' . $column . '),';
    803807        }
    804808        $query .= implode( ', ', $place_holders );
     
    12821286    public function maybe_record_automatic_translation_error($error_details = array(), $ignore_last_error = false ){
    12831287        if ( !empty( $this->db->last_error) || $ignore_last_error ){
     1288
    12841289            if( !$this->error_manager ){
    1285                 $trp = TRP_Translate_Press::get_trp_instance();
    12861290                $this->error_manager = $trp->get_component( 'error_manager' );
    12871291            }
     1292
     1293
     1294
     1295
    12881296            $default_error_details = array(
    12891297                'last_error'  => $this->db->last_error,
    1290                 'disable_automatic_translations' => true
     1298                'disable_automatic_translations' => true,
     1299                'url' => $this->url_converter->cur_page_url(),
    12911300            );
    12921301            $error_details = array_merge( $default_error_details, $error_details );
     
    13991408        return $this->db->query( $sql );
    14001409    }
     1410
     1411
     1412
     1413
     1414
     1415
     1416
     1417
     1418
     1419
     1420
     1421
     1422
     1423
     1424
     1425
     1426
     1427
     1428
     1429
     1430
     1431
     1432
     1433
     1434
     1435
     1436
     1437
     1438
     1439
     1440
     1441
     1442
     1443
     1444
     1445
     1446
     1447
     1448
     1449
     1450
     1451
     1452
     1453
    14011454}
  • translatepress-multilingual/trunk/includes/class-translation-manager.php

    r2455517 r2489680  
    523523
    524524
    525         global $trp_translated_gettext_texts;
    526         if (!is_admin() || $this::is_ajax_on_frontend()) {
     525        global $trp_translated_gettext_texts;
     526        if ({
    527527            $language = get_locale();
    528528
    529             if (!$this->trp_query) {
     529            if ( in_array( $language, $this->settings['translation-languages'] ) ) {
     530                $trp_translated_gettext_texts_language = $language;
    530531                $trp = TRP_Translate_Press::get_trp_instance();
    531                 $this->trp_query = $trp->get_component('query');
    532             }
    533 
    534             $strings = $this->trp_query->get_all_gettext_strings($language);
    535             if (!empty($strings)) {
    536                 $trp_translated_gettext_texts = $strings;
    537 
    538                 foreach ($trp_translated_gettext_texts as $key => $value) {
    539                     $trp_strings[$value['domain'] . '::' . $value['original']] = $value;
    540                 }
    541                 $trp_translated_gettext_texts = $trp_strings;
     532                if ( !$this->trp_query ) {
     533                    $this->trp_query = $trp->get_component( 'query' );
     534                }
     535
     536                $strings = $this->trp_query->get_all_gettext_strings( $language );
     537                if ( !empty( $strings ) ) {
     538                    $trp_translated_gettext_texts = $strings;
     539
     540                    foreach ( $trp_translated_gettext_texts as $key => $value ) {
     541                        $trp_strings[ $value['domain'] . '::' . $value['original'] ] = $value;
     542                    }
     543                    $trp_translated_gettext_texts = $trp_strings;
     544                }
    542545            }
    543546        }
     
    584587    }
    585588
    586     public function call_gettext_filters($prefix = '')
    587     {
     589    public function processing_gettext_is_needed(){
    588590        global $pagenow;
    589591
     
    597599
    598600        // Do not process gettext strings on wp-login pages. Do not process strings in admin area except for when when is_ajax_on_frontend. Do not process gettext strings when is rest api from admin url referer. Do not process gettext on xmlrpc.pho
    599         if (($pagenow != 'wp-login.php') && (!is_admin() || $this::is_ajax_on_frontend()) && !$this->is_admin_request && $pagenow != 'xmlrpc.php') {
     601        return (($pagenow != 'wp-login.php') && (!is_admin() || $this::is_ajax_on_frontend()) && !$this->is_admin_request && $pagenow != 'xmlrpc.php');
     602    }
     603
     604    public function call_gettext_filters($prefix = '') {
     605        if ( $this->processing_gettext_is_needed() ){
    600606            add_filter('gettext', array($this, $prefix . 'process_gettext_strings'), 100, 3);
    601607            add_filter('gettext_with_context', array($this, $prefix . 'process_gettext_strings_with_context'), 100, 4);
     
    777783        /* get_locale() returns WP Settings Language (WPLANG). It might not be a language in TP so it may not have a TP table. */
    778784        $current_locale = get_locale();
    779         if (!in_array($current_locale, $this->settings['translation-languages'])) {
     785        global $trp_translated_gettext_texts_language;
     786        if ( !in_array($current_locale, $this->settings['translation-languages'] ) || empty( $trp_translated_gettext_texts_language) || $trp_translated_gettext_texts_language !== $current_locale ) {
    780787            return $translation;
    781788        }
  • translatepress-multilingual/trunk/includes/compatibility-functions.php

    r2479178 r2489680  
    4343add_filter( 'nav_menu_link_attributes', 'trp_remove_html_from_menu_title', 10, 3);
    4444function trp_remove_html_from_menu_title( $atts, $item, $args ){
    45     $atts['title'] = wp_strip_all_tags($atts['title']);
     45    if( isset( $atts['title'] ) )
     46        $atts['title'] = wp_strip_all_tags($atts['title']);
     47       
    4648    return $atts;
    4749}
     
    840842}
    841843
    842 /**
    843  * Used to redirect Oxygen Builder front-end to the default language.
    844  * Hooked before TRP_Language_Switcher::redirect_to_correct_language() so we don't redirect twice
    845  */
    846 add_action( 'template_redirect', 'trp_page_builder_compatibility_redirect_to_default_language', 10 );
    847 function trp_page_builder_compatibility_redirect_to_default_language(){
    848 
    849     if( !is_admin() && ( ( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] == 'true' ) || isset( $_GET['fl_builder'] ) ) ){
    850 
    851         $trp           = TRP_Translate_Press::get_trp_instance();
    852         $url_converter = $trp->get_component('url_converter');
    853         $settings      = ( new TRP_Settings() )->get_settings();
    854 
    855         $current_url  = $url_converter->cur_page_url();
    856         $current_lang = $url_converter->get_lang_from_url_string( $current_url );
    857 
    858         if( ( $current_lang == null && $settings['add-subdirectory-to-default-language'] == 'yes' ) || ( $current_lang != null && $current_lang != $settings['default-language'] ) ){
    859             $link_to_redirect = $url_converter->get_url_for_language( $settings['default-language'], null, '' );
    860 
    861             wp_redirect( $link_to_redirect, 301 );
    862             exit;
     844if( function_exists( 'ct_is_show_builder' ) || defined( 'FL_BUILDER_VERSION' ) ){
     845
     846    /**
     847     * Used to redirect Oxygen Builder front-end to the default language.
     848     * Hooked before TRP_Language_Switcher::redirect_to_correct_language() so we don't redirect twice
     849     */
     850    add_action( 'template_redirect', 'trp_page_builder_compatibility_redirect_to_default_language', 10 );
     851    function trp_page_builder_compatibility_redirect_to_default_language(){
     852
     853        if( !is_admin() && ( ( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] == 'true' ) || isset( $_GET['fl_builder'] ) ) ){
     854
     855            $trp           = TRP_Translate_Press::get_trp_instance();
     856            $url_converter = $trp->get_component('url_converter');
     857            $settings      = ( new TRP_Settings() )->get_settings();
     858
     859            $current_url  = $url_converter->cur_page_url();
     860            $current_lang = $url_converter->get_lang_from_url_string( $current_url );
     861
     862            if( ( $current_lang == null && $settings['add-subdirectory-to-default-language'] == 'yes' ) || ( $current_lang != null && $current_lang != $settings['default-language'] ) ){
     863                $link_to_redirect = $url_converter->get_url_for_language( $settings['default-language'], null, '' );
     864
     865                if( $link_to_redirect != $current_url ){
     866                    wp_redirect( $link_to_redirect, 301 );
     867                    exit;
     868                }
     869
     870            }
     871
     872        }
     873
     874    }
     875
     876    /**
     877     * Disable automatic language redirect when the Oxygen or Beaver Builders are showing
     878     */
     879    add_action( 'plugins_loaded', 'trp_page_builder_compatibility_disable_automatic_language_redirect' );
     880    function trp_page_builder_compatibility_disable_automatic_language_redirect(){
     881
     882        if( ( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] == 'true' ) || isset( $_GET['fl_builder'] ) ){
     883
     884            $trp    = TRP_Translate_Press::get_trp_instance();
     885            $loader = $trp->get_component( 'loader' );
     886
     887            $loader->remove_hook( 'wp_enqueue_scripts', 'enqueue_cookie_adding' );
     888
    863889        }
    864890
     
    13531379     }
    13541380 }
    1355  
     1381
    13561382 function trp_mylisting_exclude_string( $translation, $text, $context, $domain ){
    13571383
  • translatepress-multilingual/trunk/includes/external-functions.php

    r2336046 r2489680  
    115115    return $array;
    116116}
     117
     118
     119
     120
     121
     122
     123
     124
     125
  • translatepress-multilingual/trunk/includes/trp-ajax.php

    r2411165 r2489680  
    2323
    2424        include './external-functions.php';
     25
     26
     27
     28
    2529
    2630        if ( $this->connect_to_db() ){
  • translatepress-multilingual/trunk/index.php

    r2479178 r2489680  
    44Plugin URI: https://translatepress.com/
    55Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
    6 Version: 1.9.5
     6Version: 1.9.
    77Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
    88Author URI: https://cozmoslabs.com/
  • translatepress-multilingual/trunk/languages/translatepress-multilingual.pot

    r2479178 r2489680  
    682682msgstr ""
    683683
    684 #: includes/class-translation-manager.php:1261
     684#: includes/class-translation-manager.php:126
    685685msgid "Security check"
    686686msgstr ""
    687687
    688 #: includes/class-translation-manager.php:1335
     688#: includes/class-translation-manager.php:13
    689689msgid "<strong>Warning:</strong> Some strings have possibly incorrectly encoded characters. This may result in breaking the queries, rendering the page untranslated in live mode. Consider revising the following strings or their method of outputting."
    690690msgstr ""
  • translatepress-multilingual/trunk/readme.txt

    r2479178 r2489680  
    44Tags: translate, translation, multilingual, automatic translation, bilingual, front-end translation, google translate, language
    55Requires at least: 3.1.0
    6 Tested up to: 5.6.1
     6Tested up to: 5.6.
    77Requires PHP: 5.6.20
    8 Stable tag: 1.9.5
     8Stable tag: 1.9.
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    139139
    140140== Changelog ==
     141
     142
     143
     144
     145
     146
     147
     148
    141149= 1.9.5 =
    142150* Added setting that allows you to translate only certain paths or exclude certain paths from being translated.
Note: See TracChangeset for help on using the changeset viewer.