Changeset 3329584
- Timestamp:
- 07/17/2025 10:19:54 AM (9 months ago)
- Location:
- clonable
- Files:
-
- 123 added
- 10 edited
-
tags/2.5.5 (added)
-
tags/2.5.5/Bootstrap.php (added)
-
tags/2.5.5/clonable-wp.php (added)
-
tags/2.5.5/controllers (added)
-
tags/2.5.5/controllers/Controller.php (added)
-
tags/2.5.5/controllers/DashboardController.php (added)
-
tags/2.5.5/controllers/LandingPageController.php (added)
-
tags/2.5.5/controllers/LanguageSwitcherController.php (added)
-
tags/2.5.5/controllers/LanguageTagController.php (added)
-
tags/2.5.5/controllers/SettingController.php (added)
-
tags/2.5.5/controllers/WoocommerceController.php (added)
-
tags/2.5.5/controllers/index.php (added)
-
tags/2.5.5/exceptions (added)
-
tags/2.5.5/exceptions/ApiException.php (added)
-
tags/2.5.5/exceptions/CurlException.php (added)
-
tags/2.5.5/exceptions/ValidationException.php (added)
-
tags/2.5.5/helpers (added)
-
tags/2.5.5/helpers/Functions.php (added)
-
tags/2.5.5/helpers/Html.php (added)
-
tags/2.5.5/helpers/Json.php (added)
-
tags/2.5.5/helpers/Locales.php (added)
-
tags/2.5.5/helpers/Session.php (added)
-
tags/2.5.5/helpers/clonable-locales-list.php (added)
-
tags/2.5.5/helpers/index.php (added)
-
tags/2.5.5/images (added)
-
tags/2.5.5/images/clonable-full-logo.png (added)
-
tags/2.5.5/images/clonable.png (added)
-
tags/2.5.5/images/configure-wordpress-thumbnail.png (added)
-
tags/2.5.5/images/flags.png (added)
-
tags/2.5.5/images/index.php (added)
-
tags/2.5.5/images/language-switcher-thumbnail.png (added)
-
tags/2.5.5/index.php (added)
-
tags/2.5.5/middleware (added)
-
tags/2.5.5/middleware/Auth.php (added)
-
tags/2.5.5/middleware/ClonedSite.php (added)
-
tags/2.5.5/middleware/MiddlewareHandler.php (added)
-
tags/2.5.5/middleware/MiddlewareInterface.php (added)
-
tags/2.5.5/middleware/WooCommerce.php (added)
-
tags/2.5.5/middleware/index.php (added)
-
tags/2.5.5/models (added)
-
tags/2.5.5/models/ApiKey.php (added)
-
tags/2.5.5/models/ClonableWooCommerce.php (added)
-
tags/2.5.5/models/ClonedSite.php (added)
-
tags/2.5.5/models/LanguageSwitcher.php (added)
-
tags/2.5.5/models/LanguageTag.php (added)
-
tags/2.5.5/models/Settings.php (added)
-
tags/2.5.5/models/Site.php (added)
-
tags/2.5.5/models/index.php (added)
-
tags/2.5.5/objects (added)
-
tags/2.5.5/objects/ApiResponse.php (added)
-
tags/2.5.5/objects/CircuitBreaker.php (added)
-
tags/2.5.5/objects/ClonableConfig.php (added)
-
tags/2.5.5/objects/ClonableResponse.php (added)
-
tags/2.5.5/objects/CurlBuilder.php (added)
-
tags/2.5.5/objects/ExcludedProductTerm.php (added)
-
tags/2.5.5/objects/Notification.php (added)
-
tags/2.5.5/objects/index.php (added)
-
tags/2.5.5/readme-da_DK.txt (added)
-
tags/2.5.5/readme-de_DE.txt (added)
-
tags/2.5.5/readme-es_ES.txt (added)
-
tags/2.5.5/readme-fr_FR.txt (added)
-
tags/2.5.5/readme-it_IT.txt (added)
-
tags/2.5.5/readme-nb_NO.txt (added)
-
tags/2.5.5/readme-nl_NL.txt (added)
-
tags/2.5.5/readme-sv_SE.txt (added)
-
tags/2.5.5/readme.txt (added)
-
tags/2.5.5/routes (added)
-
tags/2.5.5/routes/Router.php (added)
-
tags/2.5.5/routes/index.php (added)
-
tags/2.5.5/services (added)
-
tags/2.5.5/services/AllowedHostsService.php (added)
-
tags/2.5.5/services/ApiService.php (added)
-
tags/2.5.5/services/CacheService.php (added)
-
tags/2.5.5/services/ClonableWooCommerceService.php (added)
-
tags/2.5.5/services/LanguageSwitcherService.php (added)
-
tags/2.5.5/services/LanguageTagService.php (added)
-
tags/2.5.5/services/LocaleService.php (added)
-
tags/2.5.5/services/MultiCurrencyService.php (added)
-
tags/2.5.5/services/ShortCodeService.php (added)
-
tags/2.5.5/services/SubfolderService.php (added)
-
tags/2.5.5/services/SyncService.php (added)
-
tags/2.5.5/services/index.php (added)
-
tags/2.5.5/services/modules (added)
-
tags/2.5.5/services/modules/DataPanelModule.php (added)
-
tags/2.5.5/services/modules/ExclusionModule.php (added)
-
tags/2.5.5/services/modules/ProductImporterModule.php (added)
-
tags/2.5.5/services/modules/TaxonomyModule.php (added)
-
tags/2.5.5/services/modules/index.php (added)
-
tags/2.5.5/traits (added)
-
tags/2.5.5/traits/Forms.php (added)
-
tags/2.5.5/traits/PluginCheck.php (added)
-
tags/2.5.5/traits/Validation.php (added)
-
tags/2.5.5/traits/WooCommerceCheck.php (added)
-
tags/2.5.5/traits/index.php (added)
-
tags/2.5.5/uninstall.php (added)
-
tags/2.5.5/views (added)
-
tags/2.5.5/views/DashboardView.php (added)
-
tags/2.5.5/views/LanguageSwitcherView.php (added)
-
tags/2.5.5/views/LanguageTagView.php (added)
-
tags/2.5.5/views/Layout.php (added)
-
tags/2.5.5/views/OnboardingView.php (added)
-
tags/2.5.5/views/SettingsView.php (added)
-
tags/2.5.5/views/ViewInterface.php (added)
-
tags/2.5.5/views/WoocommerceView.php (added)
-
tags/2.5.5/views/css (added)
-
tags/2.5.5/views/css/clonable-extra-button.css (added)
-
tags/2.5.5/views/css/clonable-global.css (added)
-
tags/2.5.5/views/css/clonable-thumbnails.css (added)
-
tags/2.5.5/views/css/clonable-woocommerce.css (added)
-
tags/2.5.5/views/css/clonable.css (added)
-
tags/2.5.5/views/css/fomantic-dropdown.css (added)
-
tags/2.5.5/views/css/fomantic-transition.css (added)
-
tags/2.5.5/views/css/freakflags.css (added)
-
tags/2.5.5/views/css/index.php (added)
-
tags/2.5.5/views/index.php (added)
-
tags/2.5.5/views/scripts (added)
-
tags/2.5.5/views/scripts/alpine.js (added)
-
tags/2.5.5/views/scripts/dohjs.js (added)
-
tags/2.5.5/views/scripts/fomantic-dropdown.js (added)
-
tags/2.5.5/views/scripts/fomantic-transition.js (added)
-
tags/2.5.5/views/scripts/index.php (added)
-
tags/2.5.5/views/scripts/onload.js (added)
-
tags/2.5.5/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)
Legend:
- Unmodified
- Added
- Removed
-
clonable/trunk/clonable-wp.php
r3314356 r3329584 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. 47 Version: 2.5.5 8 8 Author: Clonable BV 9 9 Author URI: https://www.clonable.net … … 114 114 115 115 define('CLONABLE_NAME', 'Clonable'); 116 define('CLONABLE_VERSION', '2.5.4'); 117 118 try { 119 $clonable_plugin = new Bootstrap(CLONABLE_NAME, CLONABLE_VERSION); 120 add_action('wp_head', array($clonable_plugin, 'verification'), 1); 121 } catch (Exception $exception) { 122 error_log("[Clonable] Error while initializing plug-in: {$exception->getMessage()}"); 123 return; 116 define('CLONABLE_VERSION', '2.5.5'); 117 118 if (defined('WP_CLI') && WP_CLI) { 119 // Do nothing for now if CLI mode is enabled 120 } else { 121 clonable_init_plugin(); 124 122 } 125 123 126 try { 127 $allowed_hosts_service = new AllowedHostsService(); 128 } catch (Exception $exception) { 129 error_log("[Clonable] Error setting allowed hosts: {$exception->getMessage()}"); 124 function clonable_init_plugin() { 125 try { 126 $clonable_plugin = new Bootstrap(CLONABLE_NAME, CLONABLE_VERSION); 127 add_action('wp_head', array($clonable_plugin, 'verification'), 1); 128 } catch (Exception $exception) { 129 error_log("[Clonable] Error while initializing plug-in: {$exception->getMessage()}"); 130 return; 131 } 132 133 try { 134 $allowed_hosts_service = new AllowedHostsService(); 135 } catch (Exception $exception) { 136 error_log("[Clonable] Error setting allowed hosts: {$exception->getMessage()}"); 137 } 138 139 try { 140 $language_tag_service = new LanguageTagService(); 141 add_action('wp_head', array($language_tag_service, 'clonable_echo_language_tags'), 5); 142 add_action('clonable_public_key_cron_hook', array($language_tag_service, 'clonable_get_public_key'), 10, 1); 143 // Schedule cronjob for public key if it doesn't exist yet 144 if(wp_next_scheduled("clonable_public_key_cron_hook", array(true)) === false) { 145 wp_schedule_event(time(), 'daily', 'clonable_public_key_cron_hook', array(true)); 146 } 147 } catch (Exception $exception) { 148 error_log("[Clonable] Error while setting up language tags: {$exception->getMessage()}"); 149 } 150 151 try { 152 // Add language switcher hook 153 $language_switcher_service = new LanguageSwitcherService(); 154 add_action("wp_head", array($language_switcher_service, 'print_language_switcher')); 155 } catch (Exception $exception) { 156 error_log("[Clonable] Error while setting up language switcher: {$exception->getMessage()}"); 157 } 158 159 160 try { 161 // Constructor automatically fixes the initialisation of the subfolders 162 $subfolder_service = new SubfolderService(); 163 } catch (Exception $exception) { 164 error_log("[Clonable] Error while setting up Clonable subfolders: {$exception->getMessage()}"); 165 } 166 167 try { 168 // Instantiate all the services that are used for different kind of WooCommerce functionalities. 169 $woocommerce_service = new ClonableWooCommerceService(); 170 add_action( 'before_woocommerce_init', function() { 171 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 172 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true); 173 } 174 }); 175 } catch (Exception $exception) { 176 error_log("[Clonable] Error while setting up WooCommerce modules: {$exception->getMessage()}"); 177 } 178 179 try { 180 $locale_service = new LocaleService(); 181 } catch (Exception $exception) { 182 error_log("[Clonable] Error setting locale: {$exception->getMessage()}"); 183 } 184 185 try { 186 $short_code_service = new ShortCodeService(); 187 } catch (Exception $exception) { 188 error_log("[Clonable] Error setting the Clonable shortcodes: {$exception->getMessage()}"); 189 } 190 191 try { 192 $multi_currency_service = new MultiCurrencyService(); 193 } catch (Exception $exception) { 194 error_log("[Clonable] Error setting the Multi currency settings: {$exception->getMessage()}"); 195 } 196 197 try { 198 $cache_service = new CacheService(); 199 } catch (Exception $exception) { 200 error_log("[Clonable] Error handling cache service: {$exception->getMessage()}"); 201 } 202 203 try { 204 if (!function_exists('clonable_current_domain')) { 205 function clonable_current_domain(): string { 206 $domain = ClonableConfig::current_clonable_domain(); 207 if ($domain === ClonableCOnfig::ORIGINAL_SHOP) { 208 return $_SERVER['host'] ?? ''; // return the standard host 209 } 210 return $domain; 211 } 212 } 213 } catch (Exception $exception) { 214 error_log("Could not setup global Clonable functions: {$exception->getMessage()}"); 215 } 130 216 } 131 132 try {133 $language_tag_service = new LanguageTagService();134 add_action('wp_head', array($language_tag_service, 'clonable_echo_language_tags'), 5);135 add_action('clonable_public_key_cron_hook', array($language_tag_service, 'clonable_get_public_key'), 10, 1);136 // Schedule cronjob for public key if it doesn't exist yet137 if(wp_next_scheduled("clonable_public_key_cron_hook", array(true)) === false) {138 wp_schedule_event(time(), 'daily', 'clonable_public_key_cron_hook', array(true));139 }140 } catch (Exception $exception) {141 error_log("[Clonable] Error while setting up language tags: {$exception->getMessage()}");142 }143 144 try {145 // Add language switcher hook146 $language_switcher_service = new LanguageSwitcherService();147 add_action("wp_head", array($language_switcher_service, 'print_language_switcher'));148 } catch (Exception $exception) {149 error_log("[Clonable] Error while setting up language switcher: {$exception->getMessage()}");150 }151 152 153 try {154 // Constructor automatically fixes the initialisation of the subfolders155 $subfolder_service = new SubfolderService();156 } catch (Exception $exception) {157 error_log("[Clonable] Error while setting up Clonable subfolders: {$exception->getMessage()}");158 }159 160 try {161 // Instantiate all the services that are used for different kind of WooCommerce functionalities.162 $woocommerce_service = new ClonableWooCommerceService();163 add_action( 'before_woocommerce_init', function() {164 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {165 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true);166 }167 });168 } catch (Exception $exception) {169 error_log("[Clonable] Error while setting up WooCommerce modules: {$exception->getMessage()}");170 }171 172 try {173 $locale_service = new LocaleService();174 } catch (Exception $exception) {175 error_log("[Clonable] Error setting locale: {$exception->getMessage()}");176 }177 178 try {179 $short_code_service = new ShortCodeService();180 } catch (Exception $exception) {181 error_log("[Clonable] Error setting the Clonable shortcodes: {$exception->getMessage()}");182 }183 184 try {185 $multi_currency_service = new MultiCurrencyService();186 } catch (Exception $exception) {187 error_log("[Clonable] Error setting the Multi currency settings: {$exception->getMessage()}");188 }189 190 try {191 $cache_service = new CacheService();192 } catch (Exception $exception) {193 error_log("[Clonable] Error handling cache service: {$exception->getMessage()}");194 }195 196 try {197 if (!function_exists('clonable_current_domain')) {198 function clonable_current_domain(): string {199 $domain = ClonableConfig::current_clonable_domain();200 if ($domain === ClonableCOnfig::ORIGINAL_SHOP) {201 return $_SERVER['host'] ?? ''; // return the standard host202 }203 return $domain;204 }205 }206 } catch (Exception $exception) {207 error_log("Could not setup global Clonable functions: {$exception->getMessage()}");208 } -
clonable/trunk/readme-da_DK.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme-de_DE.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme-es_ES.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme-fr_FR.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme-it_IT.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme-nb_NO.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme-nl_NL.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme-sv_SE.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files -
clonable/trunk/readme.txt
r3314356 r3329584 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.5 35 Added WordPress CLI check in the WooCommerce service 36 34 37 v2.5.4 35 38 Fixed problems with null byte files
Note: See TracChangeset
for help on using the changeset viewer.