Changeset 3336393
- Timestamp:
- 07/30/2025 07:36:13 AM (8 months ago)
- Location:
- clonable
- Files:
-
- 122 added
- 13 edited
-
tags/2.5.6 (added)
-
tags/2.5.6/Bootstrap.php (added)
-
tags/2.5.6/clonable-wp.php (added)
-
tags/2.5.6/controllers (added)
-
tags/2.5.6/controllers/Controller.php (added)
-
tags/2.5.6/controllers/DashboardController.php (added)
-
tags/2.5.6/controllers/LandingPageController.php (added)
-
tags/2.5.6/controllers/LanguageSwitcherController.php (added)
-
tags/2.5.6/controllers/LanguageTagController.php (added)
-
tags/2.5.6/controllers/SettingController.php (added)
-
tags/2.5.6/controllers/WoocommerceController.php (added)
-
tags/2.5.6/controllers/index.php (added)
-
tags/2.5.6/exceptions (added)
-
tags/2.5.6/exceptions/ApiException.php (added)
-
tags/2.5.6/exceptions/CurlException.php (added)
-
tags/2.5.6/exceptions/ValidationException.php (added)
-
tags/2.5.6/helpers (added)
-
tags/2.5.6/helpers/Functions.php (added)
-
tags/2.5.6/helpers/Html.php (added)
-
tags/2.5.6/helpers/Json.php (added)
-
tags/2.5.6/helpers/Locales.php (added)
-
tags/2.5.6/helpers/Session.php (added)
-
tags/2.5.6/helpers/clonable-locales-list.php (added)
-
tags/2.5.6/helpers/index.php (added)
-
tags/2.5.6/images (added)
-
tags/2.5.6/images/clonable-full-logo.png (added)
-
tags/2.5.6/images/clonable.png (added)
-
tags/2.5.6/images/configure-wordpress-thumbnail.png (added)
-
tags/2.5.6/images/flags.png (added)
-
tags/2.5.6/images/index.php (added)
-
tags/2.5.6/images/language-switcher-thumbnail.png (added)
-
tags/2.5.6/index.php (added)
-
tags/2.5.6/middleware (added)
-
tags/2.5.6/middleware/Auth.php (added)
-
tags/2.5.6/middleware/ClonedSite.php (added)
-
tags/2.5.6/middleware/MiddlewareHandler.php (added)
-
tags/2.5.6/middleware/MiddlewareInterface.php (added)
-
tags/2.5.6/middleware/WooCommerce.php (added)
-
tags/2.5.6/middleware/index.php (added)
-
tags/2.5.6/models (added)
-
tags/2.5.6/models/ApiKey.php (added)
-
tags/2.5.6/models/ClonableWooCommerce.php (added)
-
tags/2.5.6/models/ClonedSite.php (added)
-
tags/2.5.6/models/LanguageSwitcher.php (added)
-
tags/2.5.6/models/LanguageTag.php (added)
-
tags/2.5.6/models/Settings.php (added)
-
tags/2.5.6/models/Site.php (added)
-
tags/2.5.6/models/index.php (added)
-
tags/2.5.6/objects (added)
-
tags/2.5.6/objects/ApiResponse.php (added)
-
tags/2.5.6/objects/CircuitBreaker.php (added)
-
tags/2.5.6/objects/ClonableConfig.php (added)
-
tags/2.5.6/objects/ClonableResponse.php (added)
-
tags/2.5.6/objects/CurlBuilder.php (added)
-
tags/2.5.6/objects/ExcludedProductTerm.php (added)
-
tags/2.5.6/objects/Notification.php (added)
-
tags/2.5.6/objects/index.php (added)
-
tags/2.5.6/readme-da_DK.txt (added)
-
tags/2.5.6/readme-de_DE.txt (added)
-
tags/2.5.6/readme-es_ES.txt (added)
-
tags/2.5.6/readme-fr_FR.txt (added)
-
tags/2.5.6/readme-it_IT.txt (added)
-
tags/2.5.6/readme-nb_NO.txt (added)
-
tags/2.5.6/readme-nl_NL.txt (added)
-
tags/2.5.6/readme-sv_SE.txt (added)
-
tags/2.5.6/readme.txt (added)
-
tags/2.5.6/routes (added)
-
tags/2.5.6/routes/Router.php (added)
-
tags/2.5.6/routes/index.php (added)
-
tags/2.5.6/services (added)
-
tags/2.5.6/services/AllowedHostsService.php (added)
-
tags/2.5.6/services/ApiService.php (added)
-
tags/2.5.6/services/CacheService.php (added)
-
tags/2.5.6/services/ClonableWooCommerceService.php (added)
-
tags/2.5.6/services/LanguageSwitcherService.php (added)
-
tags/2.5.6/services/LanguageTagService.php (added)
-
tags/2.5.6/services/LocaleService.php (added)
-
tags/2.5.6/services/MultiCurrencyService.php (added)
-
tags/2.5.6/services/ShortCodeService.php (added)
-
tags/2.5.6/services/SubfolderService.php (added)
-
tags/2.5.6/services/SyncService.php (added)
-
tags/2.5.6/services/index.php (added)
-
tags/2.5.6/services/modules (added)
-
tags/2.5.6/services/modules/DataPanelModule.php (added)
-
tags/2.5.6/services/modules/ExclusionModule.php (added)
-
tags/2.5.6/services/modules/ProductImporterModule.php (added)
-
tags/2.5.6/services/modules/TaxonomyModule.php (added)
-
tags/2.5.6/services/modules/index.php (added)
-
tags/2.5.6/traits (added)
-
tags/2.5.6/traits/Forms.php (added)
-
tags/2.5.6/traits/PluginCheck.php (added)
-
tags/2.5.6/traits/Validation.php (added)
-
tags/2.5.6/traits/index.php (added)
-
tags/2.5.6/uninstall.php (added)
-
tags/2.5.6/views (added)
-
tags/2.5.6/views/DashboardView.php (added)
-
tags/2.5.6/views/LanguageSwitcherView.php (added)
-
tags/2.5.6/views/LanguageTagView.php (added)
-
tags/2.5.6/views/Layout.php (added)
-
tags/2.5.6/views/OnboardingView.php (added)
-
tags/2.5.6/views/SettingsView.php (added)
-
tags/2.5.6/views/ViewInterface.php (added)
-
tags/2.5.6/views/WoocommerceView.php (added)
-
tags/2.5.6/views/css (added)
-
tags/2.5.6/views/css/clonable-extra-button.css (added)
-
tags/2.5.6/views/css/clonable-global.css (added)
-
tags/2.5.6/views/css/clonable-thumbnails.css (added)
-
tags/2.5.6/views/css/clonable-woocommerce.css (added)
-
tags/2.5.6/views/css/clonable.css (added)
-
tags/2.5.6/views/css/fomantic-dropdown.css (added)
-
tags/2.5.6/views/css/fomantic-transition.css (added)
-
tags/2.5.6/views/css/freakflags.css (added)
-
tags/2.5.6/views/css/index.php (added)
-
tags/2.5.6/views/index.php (added)
-
tags/2.5.6/views/scripts (added)
-
tags/2.5.6/views/scripts/alpine.js (added)
-
tags/2.5.6/views/scripts/dohjs.js (added)
-
tags/2.5.6/views/scripts/fomantic-dropdown.js (added)
-
tags/2.5.6/views/scripts/fomantic-transition.js (added)
-
tags/2.5.6/views/scripts/index.php (added)
-
tags/2.5.6/views/scripts/onload.js (added)
-
tags/2.5.6/views/scripts/woocommerce-clone-field.js (added)
-
trunk/clonable-wp.php (modified) (2 diffs)
-
trunk/controllers/LanguageTagController.php (modified) (1 diff)
-
trunk/readme-da_DK.txt (modified) (2 diffs)
-
trunk/readme-de_DE.txt (modified) (2 diffs)
-
trunk/readme-es_ES.txt (modified) (2 diffs)
-
trunk/readme-fr_FR.txt (modified) (2 diffs)
-
trunk/readme-it_IT.txt (modified) (2 diffs)
-
trunk/readme-nb_NO.txt (modified) (2 diffs)
-
trunk/readme-nl_NL.txt (modified) (2 diffs)
-
trunk/readme-sv_SE.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/services/ClonableWooCommerceService.php (modified) (1 diff)
-
trunk/services/LanguageTagService.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
clonable/trunk/clonable-wp.php
r3329584 r3336393 5 5 Description: Official plugin for improving your clones made with Clonable. 6 6 Plugin URI: https://kb.clonable.net/en/introduction/getting-started/wordpress#de-clonable-plug-in-downloaden 7 Version: 2.5. 57 Version: 2.5.6 8 8 Author: Clonable BV 9 9 Author URI: https://www.clonable.net 10 10 License: GPL v2 or later 11 11 Requires PHP: 7.0 12 Tested up to: 6.8. 112 Tested up to: 6.8.2 13 13 */ 14 14 … … 114 114 115 115 define('CLONABLE_NAME', 'Clonable'); 116 define('CLONABLE_VERSION', '2.5. 5');116 define('CLONABLE_VERSION', '2.5.6'); 117 117 118 118 if (defined('WP_CLI') && WP_CLI) { -
clonable/trunk/controllers/LanguageTagController.php
r3280987 r3336393 108 108 // Check subfolder settings 109 109 $original_subfolder = $clone->original_subfolder; 110 $clone_subfolder = $clone->clone_subfolder;111 110 if (!(Functions::str_starts_with($original_subfolder, '/') && Functions::str_ends_with($original_subfolder, '/'))) { 112 111 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.");118 112 return false; 119 113 } -
clonable/trunk/readme-da_DK.txt
r3329584 r3336393 3 3 Tags: oversættelser, oversæt, flersproget, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme-de_DE.txt
r3329584 r3336393 3 3 Tags: Übersetzungen, übersetzen, mehrsprachig, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme-es_ES.txt
r3329584 r3336393 3 3 Tags: traducciones, traducir, multilingüe, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme-fr_FR.txt
r3329584 r3336393 3 3 Tags : traductions, traduire, multilingue, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme-it_IT.txt
r3329584 r3336393 3 3 Tags: traduzioni, tradurre, multilingue, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme-nb_NO.txt
r3329584 r3336393 3 3 Tags: oversettelser, oversette, flerspråklig, clonable 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme-nl_NL.txt
r3329584 r3336393 3 3 Tags: vertalingen, vertalen, meertalig, clonable 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme-sv_SE.txt
r3329584 r3336393 3 3 Tags: översättningar, översätta, flerspråkig, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/readme.txt
r3329584 r3336393 3 3 Tags: translations, translate, multilingual, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 15 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 57 Stable tag: 2.5.6 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.6 35 Added extra null check for WooCommerce service to resolve issues with the WP-CLI 36 Added the option to remove the trailing slash for the language tag subfolders 37 34 38 v2.5.5 35 39 Added WordPress CLI check in the WooCommerce service -
clonable/trunk/services/ClonableWooCommerceService.php
r3280987 r3336393 102 102 $server_data = $_SERVER; 103 103 // phpcs:enable WordPress.Security.NonceVerification.Missing 104 $host = $server_data['HTTP_HOST'] ;104 $host = $server_data['HTTP_HOST'] ?? null; 105 105 106 if ($order_origin ) {106 if ($order_origin && $host != null) { 107 107 // Make sure both have www. or not 108 108 if (strpos($host, 'www.') !== 0 && strpos($order_origin, 'www.') === 0) { -
clonable/trunk/services/LanguageTagService.php
r3280987 r3336393 146 146 } 147 147 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 148 156 // Swap subfolder if necessary 149 $path = strtok($server_data["REQUEST_URI"], '?');150 157 if (Functions::str_starts_with($path, $original_subfolder)) { 151 158 $path = substr($path, strlen($original_subfolder));
Note: See TracChangeset
for help on using the changeset viewer.