Plugin Directory

Changeset 3104460


Ignore:
Timestamp:
06/19/2024 10:07:50 AM (22 months ago)
Author:
clonable
Message:

Version 2.1.16

Location:
clonable
Files:
109 added
14 edited

Legend:

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

    r3100441 r3104460  
    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.1.15
     7Version: 2.1.16
    88Author: Clonable BV
    99Author URI: https://www.clonable.net
     
    8989include_once "services/ClonableWooCommerceService.php";
    9090include_once "services/AllowedHostsService.php";
     91include_once "services/LocaleService.php";
    9192
    9293// include service modules
     
    9798
    9899define('CLONABLE_NAME', 'Clonable');
    99 define('CLONABLE_VERSION', '2.1.15');
     100define('CLONABLE_VERSION', '2.1.16');
    100101
    101102try {
     
    111112} catch (Exception $exception) {
    112113    error_log("[Clonable] Error setting allowed hosts: {$exception->getMessage()}");
    113     return;
    114114}
    115115
     
    134134}
    135135
     136
    136137try {
    137138    // Constructor automatically fixes the initialisation of the subfolders
     
    147148    error_log("[Clonable] Error while setting up WooCommerce modules: {$exception->getMessage()}");
    148149}
     150
     151try {
     152    $locale_service = new LocaleService();
     153} catch (Exception $exception) {
     154    error_log("[Clonable] Error setting allowed hosts: {$exception->getMessage()}");
     155}
  • clonable/trunk/helpers/Session.php

    r2974323 r3104460  
    66    const CLONABLE_VALIDATION_KEY = "clonable-validation-data";
    77
    8     public static function old($option_name) {
     8    public static function old($option_name, $default_value = false) {
    99        if (isset($_SESSION[self::CLONABLE_VALIDATION_KEY][$option_name])) {
    1010            return $_SESSION[self::CLONABLE_VALIDATION_KEY][$option_name];
    1111        }
    12         return get_option($option_name);
     12        return get_option($option_name, $default_value);
    1313    }
    1414
  • clonable/trunk/readme-da_DK.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Bedre standardværdier for klonbare indstillinger.
     36Tilføjet mulighed for at få lokaliteten for klonerne ved hjælp af WordPress' get_locale()-funktion.
     37Bugfix: Deaktiveret proxy-loop for websteder med flere undermapper.
     38
    3439v2.1.15
    3540Forbedringer af ydeevnen for API-kommunikation
  • clonable/trunk/readme-de_DE.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Bessere Standardwerte für Clonable-Optionen.
     36Option zum Abrufen des Gebietsschemas der Klone mit der WordPress-Funktion get_locale() hinzugefügt.
     37Bugfix: Deaktivierte Proxy-Schleife für Websites mit mehreren Unterordnern.
     38
    3439v2.1.15
    3540Leistungsverbesserungen für die API-Kommunikation
  • clonable/trunk/readme-es_ES.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Mejores valores por defecto para las opciones de Clonable.
     36Añadida opción para obtener la configuración regional de los clones usando la función de WordPress get_locale().
     37Bugfix: Deshabilitado el bucle proxy para sitios con múltiples subcarpetas.
     38
    3439v2.1.15
    3540Mejoras en el rendimiento de la comunicación API
  • clonable/trunk/readme-fr_FR.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Meilleures valeurs par défaut pour les options Clonable.
     36Ajout d'une option pour obtenir la locale des clones en utilisant la fonction WordPress get_locale().
     37Correction : Désactivation de la boucle de proxy pour les sites avec plusieurs sous-dossiers.
     38
    3439v2.1.15
    3540Amélioration des performances pour la communication avec l'API
  • clonable/trunk/readme-it_IT.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Migliori valori predefiniti per le opzioni Clonable.
     36Aggiunta l'opzione per ottenere il locale dei cloni usando la funzione WordPress get_locale().
     37Bugfix: Disabilitato il ciclo proxy per i siti con più sottocartelle.
     38
    3439v2.1.15
    3540Miglioramenti delle prestazioni per la comunicazione API
  • clonable/trunk/readme-nb_NO.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Bedre standardverdier for klonbare alternativer.
     36Lagt til mulighet for å få lokaliteten til klonene ved hjelp av WordPress get_locale()-funksjonen.
     37Feilretting: Deaktivert proxy-loop for nettsteder med flere undermapper.
     38
    3439v2.1.15
    3540Forbedret ytelse for API-kommunikasjon
  • clonable/trunk/readme-nl_NL.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Betere standaardwaarden voor klonen-opties.
     36Optie toegevoegd om de locale van de klonen te krijgen met de WordPress get_locale() functie.
     37Verbetering: Proxy-lus uitgeschakeld voor sites met meerdere submappen.
     38
    3439v2.1.15
    3540Prestatieverbeteringen voor API-communicatie
  • clonable/trunk/readme-sv_SE.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Bättre standardvärden för Clonable-alternativ.
     36Lagt till alternativ för att hämta klonernas språk med hjälp av WordPress get_locale()-funktionen.
     37Buggfix: Inaktiverad proxyslinga för webbplatser med flera undermappar.
     38
    3439v2.1.15
    3540Prestandaförbättringar för API-kommunikation
  • clonable/trunk/readme.txt

    r3100441 r3104460  
    55Tested up to: 6.5.4
    66Requires PHP: 7.0
    7 Stable tag: 2.1.15
     7Stable tag: 2.1.16
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.1.16
     35Better default values for Clonable options.
     36Added option to get the locale of the clones using the WordPress get_locale() function.
     37Bugfix: Disabled proxy loop for sites with multiple subfolders.
     38
    3439v2.1.15
    3540Performance improvements for API communication
  • clonable/trunk/services/LanguageTagService.php

    r3088207 r3104460  
    6565        }
    6666
    67         $translate_all_urls = get_option('clonable_langtag_switch') == 'on';
     67        $translate_all_urls = get_option('clonable_langtag_switch', 'off') == 'on';
    6868        if (isset($data->clones)) {
    6969            foreach ($data->clones as $clone) {
  • clonable/trunk/services/SubfolderService.php

    r3071467 r3104460  
    5757        $is_clonable_page = false;
    5858        $request_path = $server_data['REQUEST_URI'];
    59         if ($request_path == null) {
     59
     60        if ($request_path == null || !empty($server_data['HTTP_CLONABLE_CLONE_SUBFOLDER'])) {
    6061            return;
    6162        }
  • clonable/trunk/views/LanguageTagView.php

    r3012322 r3104460  
    2525    }
    2626
    27 
    2827    public function clonable_langtag_data_field() {
    29         $option = Session::old('clonable_langtag_data');
     28        $option = Session::old('clonable_langtag_data', 'off');
    3029        ?>
    3130            <p>In the table below you can add your language tags. There are a few rules for adding the language tags:</p>
Note: See TracChangeset for help on using the changeset viewer.