Plugin Directory

Changeset 3377392


Ignore:
Timestamp:
10/13/2025 09:57:34 AM (6 months ago)
Author:
clonable
Message:

Version 2.7.0

Location:
clonable
Files:
123 added
13 edited

Legend:

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

    r3347979 r3377392  
    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.6.2
     7Version: 2.7.0
    88Author: Clonable BV
    99Author URI: https://www.clonable.net
    1010License: GPL v2 or later
    1111Requires PHP: 7.0
    12 Tested up to: 6.8.2
     12Tested up to: 6.8.3
    1313*/
    1414
     
    115115
    116116define('CLONABLE_NAME', 'Clonable');
    117 define('CLONABLE_VERSION', '2.6.2');
     117define('CLONABLE_VERSION', '2.7.0');
    118118
    119119if (defined('WP_CLI') && WP_CLI) {
  • clonable/trunk/readme-da_DK.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/readme-de_DE.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/readme-es_ES.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/readme-fr_FR.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/readme-it_IT.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/readme-nb_NO.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/readme-nl_NL.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Extra return filter hooks toegevoegd voor WooCommerce.
  • clonable/trunk/readme-sv_SE.txt

    r3347979 r3377392  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/readme.txt

    r3347979 r3377392  
    33Tags: translations, translate, multilingual, clonable, seo
    44Requires at least: 5.0
    5 Tested up to: 6.8.2
     5Tested up to: 6.8.3
    66Requires PHP: 7.2
    7 Stable tag: 2.6.2
     7Stable tag: 2.7.0
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.0
     35Improved compatibility with caching plugins
     36
    3437v2.6.2
    3538Added extra return filters hooks for WooCommerce.
  • clonable/trunk/services/ClonableWooCommerceService.php

    r3347979 r3377392  
    6060
    6161    public function add_origin_field($checkout) {
    62         $http_data = wp_unslash($_SERVER);
    63         if (isset($http_data['HTTP_HOST'])) {
    64             $domain = rtrim(ClonableConfig::current_clonable_domain(), '/');
    65             if ($domain === ClonableConfig::ORIGINAL_SHOP) {
    66                 $value = $http_data['HTTP_HOST'];
    67             } else {
    68                 $value = $domain;
    69             }
    70         } else {
    71             $value = '';
    72         }
     62        $value = parse_url( get_site_url(), PHP_URL_HOST );
    7363        echo "<input type=\"hidden\" name=\"clonable_origin\" value=\"" . esc_html($value) . "\" />";
    7464    }
  • clonable/trunk/services/SubfolderService.php

    r3314356 r3377392  
    2929
    3030        $this->circuit_breaker = new CircuitBreaker();
    31         add_filter('woocommerce_get_script_data', [$this, 'setup_subfolder_script_data'], 1, 2);
     31        wp_enqueue_script( 'clonable-subfolder-ajax-middleware', '/clonable-cgi/js/sfm', array('jquery'));
    3232        add_action('plugins_loaded', array($this, 'subfolder_request_intercept'), 2);
    33     }
    34 
    35     /**
    36      * Changes the wc_ajax_url of specific root scripts, so that their JSON data can also be translated.
    37      * See https://woocommerce.github.io/code-reference/files/woocommerce-includes-class-wc-frontend-scripts.html.
    38      * @param $params array the parameters used to execute the ajax action.
    39      * @param $handle string which WooCommerce ajax action
    40      * @return array
    41      */
    42     public function setup_subfolder_script_data($params, $handle) {
    43         $server_data = $_SERVER; // this fixes some linting rules
    44         if (isset($server_data['HTTP_CLONABLE_CLONE_SUBFOLDER']) && $params !== false) {
    45             foreach ($params as $key => $value) {
    46                 $subfolder = rtrim($server_data['HTTP_CLONABLE_CLONE_SUBFOLDER'],  '/');
    47                 if ($key === 'wc_ajax_url') {
    48                     $params[$key] = $subfolder . $value;
    49                 }
    50 
    51                 if ($key === 'ajax_url' && !Functions::str_starts_with("$subfolder/", $params[$key])) {
    52                     $params[$key] = $subfolder . $value;
    53                 }
    54             }
    55         }
    56         return $params;
    5733    }
    5834
  • clonable/trunk/views/SettingsView.php

    r3302098 r3377392  
    5050        $option = get_option('clonable_locale_service_enabled', 'on');
    5151        $this->create_checkbox('clonable_locale_service_enabled', $option);
    52         echo "(Sets the WordPress locale to the locale of the active clone.)";
     52        echo "(Sets the WordPress locale to the locale of the active clone. <strong>Note</strong>: this may result in caching errors if your cache is configured incorrectly.)";
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.