Plugin Directory

Changeset 3442930


Ignore:
Timestamp:
01/20/2026 04:33:35 AM (2 months ago)
Author:
linguise
Message:

Updating to version 2.2.20

Location:
linguise
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • linguise/tags/2.2.20/linguise.php

    r3439211 r3442930  
    55 * Plugin URI: https://www.linguise.com/
    66 * Description: Linguise translation plugin
    7  * Version:2.2.19
     7 * Version:2.2.20
    88 * Text Domain: linguise
    99 * Domain Path: /languages
  • linguise/tags/2.2.20/readme.txt

    r3439211 r3442930  
    44Requires at least: 4.0
    55Tested up to: 6.9
    6 Stable tag: 2.2.19
     6Stable tag: 2.2.20
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    108108
    109109== Changelog ==
     110= 2.2.20 =
     111- Feature: Support translating WPForms redirect URL
     112
    110113= 2.2.19 =
    111114- Fix: Unable to switch using language switcher
  • linguise/tags/2.2.20/src/constants.php

    r3439211 r3442930  
    11<?php
    22if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) {
    3     define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.19');
     3    define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.20');
    44}
    55
    66if (!defined('LINGUISE_VERSION')) {
    7     define('LINGUISE_VERSION', '2.2.19');
     7    define('LINGUISE_VERSION', '2.2.20');
    88}
  • linguise/tags/2.2.20/src/thirdparty/wp-forms.php

    r3434029 r3442930  
    5252
    5353    /**
     54     * Decides if the WPForms integration should be loaded.
     55     *
     56     * @return boolean
     57     */
     58    public function shouldLoad()
     59    {
     60        return is_plugin_active('wpforms-lite/wpforms.php') || is_plugin_active('wpforms/wpforms.php');
     61    }
     62
     63    /**
    5464     * Load the integration
    5565     *
     
    5868    public function init()
    5969    {
     70        add_filter('wpforms_process_redirect_url', [$this, 'translateRedirectUrl'], 1000, 1);
     71
    6072        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- No action
    6173        if (!empty($_REQUEST['action']) && $_REQUEST['action'] === 'wpforms_submit') {
     
    6678
    6779    /**
    68      * Decides if the WPForms integration should be loaded.
    69      *
    70      * @return boolean
    71      */
    72     public function shouldLoad()
    73     {
    74         return is_plugin_active('wpforms-lite/wpforms.php') || is_plugin_active('wpforms/wpforms.php');
    75     }
    76 
    77     /**
    7880     * Unload the integration
    7981     *
     
    8284    public function destroy()
    8385    {
     86        remove_filter('wpforms_process_redirect_url', [$this, 'translateRedirectUrl'], 1000);
     87
    8488        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- No action
    8589        if (!empty($_REQUEST['action']) && $_REQUEST['action'] === 'wpforms_submit') {
    86             remove_filter('wp_mail', [$this, 'translateEmails'], 1000, 1);
    87             remove_filter('wpforms_frontend_confirmation_message', [$this, 'translateConfirmationMessage'], 10, 1);
     90            remove_filter('wp_mail', [$this, 'translateEmails'], 1000);
     91            remove_filter('wpforms_frontend_confirmation_message', [$this, 'translateConfirmationMessage'], 10);
    8892        }
    8993    }
     
    221225        return $matches[1];
    222226    }
     227
     228    /**
     229     * Logs the redirect URL for debugging purposes.
     230     *
     231     * @param string $url The redirect URL to be translated.
     232     *
     233     * @return string
     234     */
     235    public function translateRedirectUrl($url)
     236    {
     237        // Store to error log for debugging
     238        $language = WPHelper::getLanguageFromReferer();
     239        if (!$language) {
     240            return $url;
     241        }
     242
     243        // Translate the URL
     244        $result = $this->translateUrl($language, $url);
     245        if (empty($result)) {
     246            return $url;
     247        }
     248
     249        return $result;
     250    }
    223251}
  • linguise/tags/2.2.20/vendor/composer/installed.php

    r3439211 r3442930  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'a12089f06672c562e4f5de76b559d2f2c09c674b',
     6        'reference' => '354f19240a11160636da0632f88c9c6f875a58b2',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => 'a12089f06672c562e4f5de76b559d2f2c09c674b',
     34            'reference' => '354f19240a11160636da0632f88c9c6f875a58b2',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../../',
  • linguise/trunk/linguise.php

    r3439211 r3442930  
    55 * Plugin URI: https://www.linguise.com/
    66 * Description: Linguise translation plugin
    7  * Version:2.2.19
     7 * Version:2.2.20
    88 * Text Domain: linguise
    99 * Domain Path: /languages
  • linguise/trunk/readme.txt

    r3439211 r3442930  
    44Requires at least: 4.0
    55Tested up to: 6.9
    6 Stable tag: 2.2.19
     6Stable tag: 2.2.20
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    108108
    109109== Changelog ==
     110= 2.2.20 =
     111- Feature: Support translating WPForms redirect URL
     112
    110113= 2.2.19 =
    111114- Fix: Unable to switch using language switcher
  • linguise/trunk/src/constants.php

    r3439211 r3442930  
    11<?php
    22if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) {
    3     define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.19');
     3    define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.20');
    44}
    55
    66if (!defined('LINGUISE_VERSION')) {
    7     define('LINGUISE_VERSION', '2.2.19');
     7    define('LINGUISE_VERSION', '2.2.20');
    88}
  • linguise/trunk/src/thirdparty/wp-forms.php

    r3434029 r3442930  
    5252
    5353    /**
     54     * Decides if the WPForms integration should be loaded.
     55     *
     56     * @return boolean
     57     */
     58    public function shouldLoad()
     59    {
     60        return is_plugin_active('wpforms-lite/wpforms.php') || is_plugin_active('wpforms/wpforms.php');
     61    }
     62
     63    /**
    5464     * Load the integration
    5565     *
     
    5868    public function init()
    5969    {
     70        add_filter('wpforms_process_redirect_url', [$this, 'translateRedirectUrl'], 1000, 1);
     71
    6072        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- No action
    6173        if (!empty($_REQUEST['action']) && $_REQUEST['action'] === 'wpforms_submit') {
     
    6678
    6779    /**
    68      * Decides if the WPForms integration should be loaded.
    69      *
    70      * @return boolean
    71      */
    72     public function shouldLoad()
    73     {
    74         return is_plugin_active('wpforms-lite/wpforms.php') || is_plugin_active('wpforms/wpforms.php');
    75     }
    76 
    77     /**
    7880     * Unload the integration
    7981     *
     
    8284    public function destroy()
    8385    {
     86        remove_filter('wpforms_process_redirect_url', [$this, 'translateRedirectUrl'], 1000);
     87
    8488        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- No action
    8589        if (!empty($_REQUEST['action']) && $_REQUEST['action'] === 'wpforms_submit') {
    86             remove_filter('wp_mail', [$this, 'translateEmails'], 1000, 1);
    87             remove_filter('wpforms_frontend_confirmation_message', [$this, 'translateConfirmationMessage'], 10, 1);
     90            remove_filter('wp_mail', [$this, 'translateEmails'], 1000);
     91            remove_filter('wpforms_frontend_confirmation_message', [$this, 'translateConfirmationMessage'], 10);
    8892        }
    8993    }
     
    221225        return $matches[1];
    222226    }
     227
     228    /**
     229     * Logs the redirect URL for debugging purposes.
     230     *
     231     * @param string $url The redirect URL to be translated.
     232     *
     233     * @return string
     234     */
     235    public function translateRedirectUrl($url)
     236    {
     237        // Store to error log for debugging
     238        $language = WPHelper::getLanguageFromReferer();
     239        if (!$language) {
     240            return $url;
     241        }
     242
     243        // Translate the URL
     244        $result = $this->translateUrl($language, $url);
     245        if (empty($result)) {
     246            return $url;
     247        }
     248
     249        return $result;
     250    }
    223251}
  • linguise/trunk/vendor/composer/installed.php

    r3439211 r3442930  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'a12089f06672c562e4f5de76b559d2f2c09c674b',
     6        'reference' => '354f19240a11160636da0632f88c9c6f875a58b2',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => 'a12089f06672c562e4f5de76b559d2f2c09c674b',
     34            'reference' => '354f19240a11160636da0632f88c9c6f875a58b2',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.