Plugin Directory

Changeset 3277301


Ignore:
Timestamp:
04/19/2025 06:44:45 PM (12 months ago)
Author:
mvpis
Message:

Updated and tested with latest version of WordPress

Location:
fluentc-translation
Files:
82 added
4 edited

Legend:

Unmodified
Added
Removed
  • fluentc-translation/trunk/fluentc_wordpress_plugin.php

    r3267615 r3277301  
    77 * Plugin URI: https://www.fluentc.ai
    88 * Description: A plugin that enables website owners to easily install the FluentC Translation on their WordPress site.
    9  * Version: 2.5.3
     9 * Version: 2.6
    1010 * Author: FluentC
    1111 * Author URI: https://www.fluentc.ai
     
    1717define( 'FLUENTC_DIR', __DIR__ );
    1818define( 'FLUENTC_SLUG', 'fluentc_translation' );
    19 define( 'FLUENTC_TRANSLATION_VERSION', "2.5.3" );
     19define( 'FLUENTC_TRANSLATION_VERSION', "2.6" );
    2020define( 'POLYLANG_VERSION', "2.5.2" );
    2121define( 'FLUENTC_TRANSLATION_PLUGIN_DIR', plugin_dir_path(__FILE__) );
  • fluentc-translation/trunk/readme.txt

    r3267615 r3277301  
    44Tags: translation, multilingual, translate, language switcher, automatic translation
    55Requires at least: 4.6
    6 Tested up to: 6.6.2
    7 Stable tag: 2.5.3
     6Tested up to: 6.8
     7Stable tag: 2.6
    88Requires PHP: 7.3
    99License: GPLv2 or later
  • fluentc-translation/trunk/src/actions/class-insert.php

    r3267615 r3277301  
    148148                return $fluentc_widget;
    149149            } else {
    150                 $fluentc_widget = $this->fluentc_widget_c->insert_fluentc_widget( true, 'en' );
     150                $fluentc_widget = $this->fluentc_widget_c->insert_fluentc_widget( true );
    151151                return $fluentc_widget;
    152152            }
  • fluentc-translation/trunk/src/services/class-widget.php

    r3267615 r3277301  
    7373     *
    7474     * @param bool   $default_lang Is the default language enabled.
    75      * @param string $lang Language Variable.
     75     * @param string|null $lang Language Variable.
    7676     * @return wp_add_inline_script
    7777     */
    78     public function insert_fluentc_widget( $default_lang, $lang ) {
     78    public function insert_fluentc_widget( $default_lang, $lang = null ) {
    7979
    8080        $widgetapikey  = get_option( 'fluentc_api_key' );
     
    117117                $header_code .= '        f.setupWidget(\'fluentc-widget\' );' . "\n";
    118118
    119         if ($lang) {
     119        if ($lang !== null) {
    120120            $header_code .= '        // Add language to AJAX requests' . "\n";
    121121            $header_code .= '        (function() {' . "\n";
Note: See TracChangeset for help on using the changeset viewer.