Changeset 3377392
- Timestamp:
- 10/13/2025 09:57:34 AM (6 months ago)
- Location:
- clonable
- Files:
-
- 123 added
- 13 edited
-
tags/2.7.0 (added)
-
tags/2.7.0/Bootstrap.php (added)
-
tags/2.7.0/clonable-wp.php (added)
-
tags/2.7.0/controllers (added)
-
tags/2.7.0/controllers/Controller.php (added)
-
tags/2.7.0/controllers/DashboardController.php (added)
-
tags/2.7.0/controllers/LandingPageController.php (added)
-
tags/2.7.0/controllers/LanguageSwitcherController.php (added)
-
tags/2.7.0/controllers/LanguageTagController.php (added)
-
tags/2.7.0/controllers/SettingController.php (added)
-
tags/2.7.0/controllers/WoocommerceController.php (added)
-
tags/2.7.0/controllers/index.php (added)
-
tags/2.7.0/exceptions (added)
-
tags/2.7.0/exceptions/ApiException.php (added)
-
tags/2.7.0/exceptions/CurlException.php (added)
-
tags/2.7.0/exceptions/ValidationException.php (added)
-
tags/2.7.0/helpers (added)
-
tags/2.7.0/helpers/Functions.php (added)
-
tags/2.7.0/helpers/Html.php (added)
-
tags/2.7.0/helpers/Json.php (added)
-
tags/2.7.0/helpers/Locales.php (added)
-
tags/2.7.0/helpers/MultiCurrency.php (added)
-
tags/2.7.0/helpers/Session.php (added)
-
tags/2.7.0/helpers/clonable-locales-list.php (added)
-
tags/2.7.0/helpers/index.php (added)
-
tags/2.7.0/images (added)
-
tags/2.7.0/images/clonable-full-logo.png (added)
-
tags/2.7.0/images/clonable.png (added)
-
tags/2.7.0/images/configure-wordpress-thumbnail.png (added)
-
tags/2.7.0/images/flags.png (added)
-
tags/2.7.0/images/index.php (added)
-
tags/2.7.0/images/language-switcher-thumbnail.png (added)
-
tags/2.7.0/index.php (added)
-
tags/2.7.0/middleware (added)
-
tags/2.7.0/middleware/Auth.php (added)
-
tags/2.7.0/middleware/ClonedSite.php (added)
-
tags/2.7.0/middleware/MiddlewareHandler.php (added)
-
tags/2.7.0/middleware/MiddlewareInterface.php (added)
-
tags/2.7.0/middleware/WooCommerce.php (added)
-
tags/2.7.0/middleware/index.php (added)
-
tags/2.7.0/models (added)
-
tags/2.7.0/models/ApiKey.php (added)
-
tags/2.7.0/models/ClonableWooCommerce.php (added)
-
tags/2.7.0/models/ClonedSite.php (added)
-
tags/2.7.0/models/LanguageSwitcher.php (added)
-
tags/2.7.0/models/LanguageTag.php (added)
-
tags/2.7.0/models/Settings.php (added)
-
tags/2.7.0/models/Site.php (added)
-
tags/2.7.0/models/index.php (added)
-
tags/2.7.0/objects (added)
-
tags/2.7.0/objects/ApiResponse.php (added)
-
tags/2.7.0/objects/CircuitBreaker.php (added)
-
tags/2.7.0/objects/ClonableConfig.php (added)
-
tags/2.7.0/objects/ClonableResponse.php (added)
-
tags/2.7.0/objects/CurlBuilder.php (added)
-
tags/2.7.0/objects/ExcludedProductTerm.php (added)
-
tags/2.7.0/objects/Notification.php (added)
-
tags/2.7.0/objects/index.php (added)
-
tags/2.7.0/readme-da_DK.txt (added)
-
tags/2.7.0/readme-de_DE.txt (added)
-
tags/2.7.0/readme-es_ES.txt (added)
-
tags/2.7.0/readme-fr_FR.txt (added)
-
tags/2.7.0/readme-it_IT.txt (added)
-
tags/2.7.0/readme-nb_NO.txt (added)
-
tags/2.7.0/readme-nl_NL.txt (added)
-
tags/2.7.0/readme-sv_SE.txt (added)
-
tags/2.7.0/readme.txt (added)
-
tags/2.7.0/routes (added)
-
tags/2.7.0/routes/Router.php (added)
-
tags/2.7.0/routes/index.php (added)
-
tags/2.7.0/services (added)
-
tags/2.7.0/services/AllowedHostsService.php (added)
-
tags/2.7.0/services/ApiService.php (added)
-
tags/2.7.0/services/CacheService.php (added)
-
tags/2.7.0/services/ClonableWooCommerceService.php (added)
-
tags/2.7.0/services/LanguageSwitcherService.php (added)
-
tags/2.7.0/services/LanguageTagService.php (added)
-
tags/2.7.0/services/LocaleService.php (added)
-
tags/2.7.0/services/MultiCurrencyService.php (added)
-
tags/2.7.0/services/ShortCodeService.php (added)
-
tags/2.7.0/services/SubfolderService.php (added)
-
tags/2.7.0/services/SyncService.php (added)
-
tags/2.7.0/services/index.php (added)
-
tags/2.7.0/services/modules (added)
-
tags/2.7.0/services/modules/DataPanelModule.php (added)
-
tags/2.7.0/services/modules/ExclusionModule.php (added)
-
tags/2.7.0/services/modules/ProductImporterModule.php (added)
-
tags/2.7.0/services/modules/TaxonomyModule.php (added)
-
tags/2.7.0/services/modules/index.php (added)
-
tags/2.7.0/traits (added)
-
tags/2.7.0/traits/Forms.php (added)
-
tags/2.7.0/traits/PluginCheck.php (added)
-
tags/2.7.0/traits/Validation.php (added)
-
tags/2.7.0/traits/index.php (added)
-
tags/2.7.0/uninstall.php (added)
-
tags/2.7.0/views (added)
-
tags/2.7.0/views/DashboardView.php (added)
-
tags/2.7.0/views/LanguageSwitcherView.php (added)
-
tags/2.7.0/views/LanguageTagView.php (added)
-
tags/2.7.0/views/Layout.php (added)
-
tags/2.7.0/views/OnboardingView.php (added)
-
tags/2.7.0/views/SettingsView.php (added)
-
tags/2.7.0/views/ViewInterface.php (added)
-
tags/2.7.0/views/WoocommerceView.php (added)
-
tags/2.7.0/views/css (added)
-
tags/2.7.0/views/css/clonable-extra-button.css (added)
-
tags/2.7.0/views/css/clonable-global.css (added)
-
tags/2.7.0/views/css/clonable-thumbnails.css (added)
-
tags/2.7.0/views/css/clonable-woocommerce.css (added)
-
tags/2.7.0/views/css/clonable.css (added)
-
tags/2.7.0/views/css/fomantic-dropdown.css (added)
-
tags/2.7.0/views/css/fomantic-transition.css (added)
-
tags/2.7.0/views/css/freakflags.css (added)
-
tags/2.7.0/views/css/index.php (added)
-
tags/2.7.0/views/index.php (added)
-
tags/2.7.0/views/scripts (added)
-
tags/2.7.0/views/scripts/alpine.js (added)
-
tags/2.7.0/views/scripts/dohjs.js (added)
-
tags/2.7.0/views/scripts/fomantic-dropdown.js (added)
-
tags/2.7.0/views/scripts/fomantic-transition.js (added)
-
tags/2.7.0/views/scripts/index.php (added)
-
tags/2.7.0/views/scripts/onload.js (added)
-
tags/2.7.0/views/scripts/woocommerce-clone-field.js (added)
-
trunk/clonable-wp.php (modified) (2 diffs)
-
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/SubfolderService.php (modified) (1 diff)
-
trunk/views/SettingsView.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
clonable/trunk/clonable-wp.php
r3347979 r3377392 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. 6.27 Version: 2.7.0 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. 212 Tested up to: 6.8.3 13 13 */ 14 14 … … 115 115 116 116 define('CLONABLE_NAME', 'Clonable'); 117 define('CLONABLE_VERSION', '2. 6.2');117 define('CLONABLE_VERSION', '2.7.0'); 118 118 119 119 if (defined('WP_CLI') && WP_CLI) { -
clonable/trunk/readme-da_DK.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/readme-de_DE.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/readme-es_ES.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/readme-fr_FR.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/readme-it_IT.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/readme-nb_NO.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/readme-nl_NL.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Extra return filter hooks toegevoegd voor WooCommerce. -
clonable/trunk/readme-sv_SE.txt
r3347979 r3377392 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/readme.txt
r3347979 r3377392 3 3 Tags: translations, translate, multilingual, clonable, seo 4 4 Requires at least: 5.0 5 Tested up to: 6.8. 25 Tested up to: 6.8.3 6 6 Requires PHP: 7.2 7 Stable tag: 2. 6.27 Stable tag: 2.7.0 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.7.0 35 Improved compatibility with caching plugins 36 34 37 v2.6.2 35 38 Added extra return filters hooks for WooCommerce. -
clonable/trunk/services/ClonableWooCommerceService.php
r3347979 r3377392 60 60 61 61 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 ); 73 63 echo "<input type=\"hidden\" name=\"clonable_origin\" value=\"" . esc_html($value) . "\" />"; 74 64 } -
clonable/trunk/services/SubfolderService.php
r3314356 r3377392 29 29 30 30 $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')); 32 32 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 action40 * @return array41 */42 public function setup_subfolder_script_data($params, $handle) {43 $server_data = $_SERVER; // this fixes some linting rules44 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;57 33 } 58 34 -
clonable/trunk/views/SettingsView.php
r3302098 r3377392 50 50 $option = get_option('clonable_locale_service_enabled', 'on'); 51 51 $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.)"; 53 53 } 54 54
Note: See TracChangeset
for help on using the changeset viewer.