Plugin Directory

Changeset 3267055


Ignore:
Timestamp:
04/04/2025 07:07:57 PM (12 months ago)
Author:
mvpis
Message:

Updated to improve WP Rocket support

Location:
fluentc-translation
Files:
83 added
5 edited

Legend:

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

    r3252669 r3267055  
    4949            '\FluentC\Models\Htmltags',
    5050            '\FluentC\Services\Html_Processor'
     51           
    5152        );
    5253       
     
    6465                '\FluentC\Services\Translation_Processor',
    6566                '\FluentC\Services\Translation_Manager',
    66                 '\FluentC\Services\FluentC_Translations'
     67                '\FluentC\Services\FluentC_Translations',
     68                '\FluentC\Compat\WP_Rocket_Compatibility::class'
    6769            );
    6870           
  • fluentc-translation/trunk/fluentc_wordpress_plugin.php

    r3265838 r3267055  
    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.1
     9 * Version: 2.5.2
    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.1" );
     19define( 'FLUENTC_TRANSLATION_VERSION', "2.5.2" );
     20define( 'POLYLANG_VERSION', "2.5.2" );
    2021define( 'FLUENTC_TRANSLATION_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    2122define( 'FLUENTC_TRANSLATION_PLUGIN_URL', plugin_dir_url(__FILE__) );
  • fluentc-translation/trunk/readme.txt

    r3265838 r3267055  
    55Requires at least: 4.6
    66Tested up to: 6.6.2
    7 Stable tag: 2.5.1
     7Stable tag: 2.5.2
    88Requires PHP: 7.3
    99License: GPLv2 or later
  • fluentc-translation/trunk/src/actions/class-wordpress.php

    r3263950 r3267055  
    375375                $this->language_code
    376376            );
    377            
     377            do_action('fluentc_after_translation');
    378378            return $html ?: $content;
    379379        } catch (\Exception $e) {
  • fluentc-translation/trunk/src/fluentc_pll_api.php

    r3261810 r3267055  
    121121    }, $result);
    122122}
    123 
     123function pll_get_post_translations($post_id) {
     124        return [$post_id]; // fallback to self-reference
     125    }
    124126/**
    125127 * Returns the post language. Used by FluentC to get the Language from the URL
Note: See TracChangeset for help on using the changeset viewer.