Plugin Directory

Changeset 3336393


Ignore:
Timestamp:
07/30/2025 07:36:13 AM (8 months ago)
Author:
clonable
Message:

version 2.5.6

Location:
clonable
Files:
122 added
13 edited

Legend:

Unmodified
Added
Removed
  • clonable/trunk/clonable-wp.php

    r3329584 r3336393  
    55Description: Official plugin for improving your clones made with Clonable.
    66Plugin URI: https://kb.clonable.net/en/introduction/getting-started/wordpress#de-clonable-plug-in-downloaden
    7 Version: 2.5.5
     7Version: 2.5.6
    88Author: Clonable BV
    99Author URI: https://www.clonable.net
    1010License: GPL v2 or later
    1111Requires PHP: 7.0
    12 Tested up to: 6.8.1
     12Tested up to: 6.8.2
    1313*/
    1414
     
    114114
    115115define('CLONABLE_NAME', 'Clonable');
    116 define('CLONABLE_VERSION', '2.5.5');
     116define('CLONABLE_VERSION', '2.5.6');
    117117
    118118if (defined('WP_CLI') && WP_CLI) {
  • clonable/trunk/controllers/LanguageTagController.php

    r3280987 r3336393  
    108108                // Check subfolder settings
    109109                $original_subfolder = $clone->original_subfolder;
    110                 $clone_subfolder = $clone->clone_subfolder;
    111110                if (!(Functions::str_starts_with($original_subfolder, '/') && Functions::str_ends_with($original_subfolder, '/'))) {
    112111                    add_settings_error('clonable_langtag_data', 'err_invalid_original_subfolder', "The original subfolder of $clone->domain is invalid.");
    113                     return false;
    114                 }
    115 
    116                 if (!(Functions::str_starts_with($clone_subfolder, '/') && Functions::str_ends_with($clone_subfolder, '/'))) {
    117                     add_settings_error('clonable_langtag_data', 'err_invalid_clone_subfolder', "The clone subfolder of $clone->domain is invalid.");
    118112                    return false;
    119113                }
  • clonable/trunk/readme-da_DK.txt

    r3329584 r3336393  
    33Tags: oversættelser, oversæt, flersproget, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme-de_DE.txt

    r3329584 r3336393  
    33Tags: Übersetzungen, übersetzen, mehrsprachig, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme-es_ES.txt

    r3329584 r3336393  
    33Tags: traducciones, traducir, multilingüe, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme-fr_FR.txt

    r3329584 r3336393  
    33Tags : traductions, traduire, multilingue, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme-it_IT.txt

    r3329584 r3336393  
    33Tags: traduzioni, tradurre, multilingue, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme-nb_NO.txt

    r3329584 r3336393  
    33Tags: oversettelser, oversette, flerspråklig, clonable
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme-nl_NL.txt

    r3329584 r3336393  
    33Tags: vertalingen, vertalen, meertalig, clonable
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme-sv_SE.txt

    r3329584 r3336393  
    33Tags: översättningar, översätta, flerspråkig, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/readme.txt

    r3329584 r3336393  
    33Tags: translations, translate, multilingual, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.1
     5Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.5.5
     7Stable tag: 2.5.6
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.6
     35Added extra null check for WooCommerce service to resolve issues with the WP-CLI
     36Added the option to remove the trailing slash for the language tag subfolders
     37
    3438v2.5.5
    3539Added WordPress CLI check in the WooCommerce service
  • clonable/trunk/services/ClonableWooCommerceService.php

    r3280987 r3336393  
    102102        $server_data = $_SERVER;
    103103        // phpcs:enable WordPress.Security.NonceVerification.Missing
    104         $host = $server_data['HTTP_HOST'];
     104        $host = $server_data['HTTP_HOST'] ?? null;
    105105
    106         if ($order_origin) {
     106        if ($order_origin && $host != null) {
    107107            // Make sure both have www. or not
    108108            if (strpos($host, 'www.') !== 0 && strpos($order_origin, 'www.') === 0) {
  • clonable/trunk/services/LanguageTagService.php

    r3280987 r3336393  
    146146        }
    147147
     148        $url_parts = parse_url($server_data["REQUEST_URI"]);
     149        $path = $url_parts["path"] ?? '';
     150
     151        // Check whether the language tag ends with an / when not on the homepage
     152        if (!($path === '' || $path === '/') && !Functions::str_ends_with($clone_subfolder, '/')) {
     153            $clone_subfolder .= '/';
     154        }
     155
    148156        // Swap subfolder if necessary
    149         $path = strtok($server_data["REQUEST_URI"], '?');
    150157        if (Functions::str_starts_with($path, $original_subfolder)) {
    151158            $path = substr($path, strlen($original_subfolder));
Note: See TracChangeset for help on using the changeset viewer.