Changeset 3313284
- Timestamp:
- 06/17/2025 01:29:58 PM (10 months ago)
- Location:
- clonable
- Files:
-
- 122 added
- 15 edited
-
tags/2.5.3 (added)
-
tags/2.5.3/Bootstrap.php (added)
-
tags/2.5.3/clonable-wp.php (added)
-
tags/2.5.3/controllers (added)
-
tags/2.5.3/controllers/Controller.php (added)
-
tags/2.5.3/controllers/DashboardController.php (added)
-
tags/2.5.3/controllers/LandingPageController.php (added)
-
tags/2.5.3/controllers/LanguageSwitcherController.php (added)
-
tags/2.5.3/controllers/LanguageTagController.php (added)
-
tags/2.5.3/controllers/SettingController.php (added)
-
tags/2.5.3/controllers/WoocommerceController.php (added)
-
tags/2.5.3/controllers/index.php (added)
-
tags/2.5.3/exceptions (added)
-
tags/2.5.3/exceptions/ApiException.php (added)
-
tags/2.5.3/exceptions/CurlException.php (added)
-
tags/2.5.3/exceptions/ValidationException.php (added)
-
tags/2.5.3/helpers (added)
-
tags/2.5.3/helpers/Functions.php (added)
-
tags/2.5.3/helpers/Html.php (added)
-
tags/2.5.3/helpers/Json.php (added)
-
tags/2.5.3/helpers/Locales.php (added)
-
tags/2.5.3/helpers/Session.php (added)
-
tags/2.5.3/helpers/clonable-locales-list.php (added)
-
tags/2.5.3/helpers/index.php (added)
-
tags/2.5.3/images (added)
-
tags/2.5.3/images/clonable-full-logo.png (added)
-
tags/2.5.3/images/clonable.png (added)
-
tags/2.5.3/images/configure-wordpress-thumbnail.png (added)
-
tags/2.5.3/images/flags.png (added)
-
tags/2.5.3/images/index.php (added)
-
tags/2.5.3/images/language-switcher-thumbnail.png (added)
-
tags/2.5.3/index.php (added)
-
tags/2.5.3/middleware (added)
-
tags/2.5.3/middleware/Auth.php (added)
-
tags/2.5.3/middleware/ClonedSite.php (added)
-
tags/2.5.3/middleware/MiddlewareHandler.php (added)
-
tags/2.5.3/middleware/MiddlewareInterface.php (added)
-
tags/2.5.3/middleware/WooCommerce.php (added)
-
tags/2.5.3/middleware/index.php (added)
-
tags/2.5.3/models (added)
-
tags/2.5.3/models/ApiKey.php (added)
-
tags/2.5.3/models/ClonableWooCommerce.php (added)
-
tags/2.5.3/models/ClonedSite.php (added)
-
tags/2.5.3/models/LanguageSwitcher.php (added)
-
tags/2.5.3/models/LanguageTag.php (added)
-
tags/2.5.3/models/Settings.php (added)
-
tags/2.5.3/models/Site.php (added)
-
tags/2.5.3/models/index.php (added)
-
tags/2.5.3/objects (added)
-
tags/2.5.3/objects/ApiResponse.php (added)
-
tags/2.5.3/objects/CircuitBreaker.php (added)
-
tags/2.5.3/objects/ClonableConfig.php (added)
-
tags/2.5.3/objects/ClonableResponse.php (added)
-
tags/2.5.3/objects/CurlBuilder.php (added)
-
tags/2.5.3/objects/ExcludedProductTerm.php (added)
-
tags/2.5.3/objects/Notification.php (added)
-
tags/2.5.3/objects/index.php (added)
-
tags/2.5.3/readme-da_DK.txt (added)
-
tags/2.5.3/readme-de_DE.txt (added)
-
tags/2.5.3/readme-es_ES.txt (added)
-
tags/2.5.3/readme-fr_FR.txt (added)
-
tags/2.5.3/readme-it_IT.txt (added)
-
tags/2.5.3/readme-nb_NO.txt (added)
-
tags/2.5.3/readme-nl_NL.txt (added)
-
tags/2.5.3/readme-sv_SE.txt (added)
-
tags/2.5.3/readme.txt (added)
-
tags/2.5.3/routes (added)
-
tags/2.5.3/routes/Router.php (added)
-
tags/2.5.3/routes/index.php (added)
-
tags/2.5.3/services (added)
-
tags/2.5.3/services/AllowedHostsService.php (added)
-
tags/2.5.3/services/ApiService.php (added)
-
tags/2.5.3/services/CacheService.php (added)
-
tags/2.5.3/services/ClonableWooCommerceService.php (added)
-
tags/2.5.3/services/LanguageSwitcherService.php (added)
-
tags/2.5.3/services/LanguageTagService.php (added)
-
tags/2.5.3/services/LocaleService.php (added)
-
tags/2.5.3/services/MultiCurrencyService.php (added)
-
tags/2.5.3/services/ShortCodeService.php (added)
-
tags/2.5.3/services/SubfolderService.php (added)
-
tags/2.5.3/services/SyncService.php (added)
-
tags/2.5.3/services/index.php (added)
-
tags/2.5.3/services/modules (added)
-
tags/2.5.3/services/modules/DataPanelModule.php (added)
-
tags/2.5.3/services/modules/ExclusionModule.php (added)
-
tags/2.5.3/services/modules/ProductImporterModule.php (added)
-
tags/2.5.3/services/modules/TaxonomyModule.php (added)
-
tags/2.5.3/services/modules/index.php (added)
-
tags/2.5.3/traits (added)
-
tags/2.5.3/traits/Forms.php (added)
-
tags/2.5.3/traits/PluginCheck.php (added)
-
tags/2.5.3/traits/Validation.php (added)
-
tags/2.5.3/traits/index.php (added)
-
tags/2.5.3/uninstall.php (added)
-
tags/2.5.3/views (added)
-
tags/2.5.3/views/DashboardView.php (added)
-
tags/2.5.3/views/LanguageSwitcherView.php (added)
-
tags/2.5.3/views/LanguageTagView.php (added)
-
tags/2.5.3/views/Layout.php (added)
-
tags/2.5.3/views/OnboardingView.php (added)
-
tags/2.5.3/views/SettingsView.php (added)
-
tags/2.5.3/views/ViewInterface.php (added)
-
tags/2.5.3/views/WoocommerceView.php (added)
-
tags/2.5.3/views/css (added)
-
tags/2.5.3/views/css/clonable-extra-button.css (added)
-
tags/2.5.3/views/css/clonable-global.css (added)
-
tags/2.5.3/views/css/clonable-thumbnails.css (added)
-
tags/2.5.3/views/css/clonable-woocommerce.css (added)
-
tags/2.5.3/views/css/clonable.css (added)
-
tags/2.5.3/views/css/fomantic-dropdown.css (added)
-
tags/2.5.3/views/css/fomantic-transition.css (added)
-
tags/2.5.3/views/css/freakflags.css (added)
-
tags/2.5.3/views/css/index.php (added)
-
tags/2.5.3/views/index.php (added)
-
tags/2.5.3/views/scripts (added)
-
tags/2.5.3/views/scripts/alpine.js (added)
-
tags/2.5.3/views/scripts/dohjs.js (added)
-
tags/2.5.3/views/scripts/fomantic-dropdown.js (added)
-
tags/2.5.3/views/scripts/fomantic-transition.js (added)
-
tags/2.5.3/views/scripts/index.php (added)
-
tags/2.5.3/views/scripts/onload.js (added)
-
tags/2.5.3/views/scripts/woocommerce-clone-field.js (added)
-
trunk/clonable-wp.php (modified) (2 diffs)
-
trunk/exceptions/ApiException.php (modified) (1 diff)
-
trunk/exceptions/CurlException.php (modified) (1 diff)
-
trunk/exceptions/ValidationException.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/ApiService.php (modified) (1 diff)
-
trunk/services/SubfolderService.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
clonable/trunk/clonable-wp.php
r3307078 r3313284 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. 27 Version: 2.5.3 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. 2');116 define('CLONABLE_VERSION', '2.5.3'); 117 117 118 118 try { -
clonable/trunk/exceptions/ApiException.php
r3234826 r3313284 8 8 class ApiException extends Exception 9 9 { 10 public function __construct($message = "", $code = 0, Throwable $previous = null)10 public function __construct($message = "", $code = 0, ?Throwable $previous = null) 11 11 { 12 12 parent::__construct($message, $code, $previous); -
clonable/trunk/exceptions/CurlException.php
r3234826 r3313284 8 8 class CurlException extends Exception 9 9 { 10 public function __construct($message = "", $code = 0, Throwable $previous = null)10 public function __construct($message = "", $code = 0, ?Throwable $previous = null) 11 11 { 12 12 parent::__construct($message, $code, $previous); -
clonable/trunk/exceptions/ValidationException.php
r3234826 r3313284 8 8 class ValidationException extends Exception 9 9 { 10 public function __construct($message = "", $code = 0, Throwable $previous = null)10 public function __construct($message = "", $code = 0, ?Throwable $previous = null) 11 11 { 12 12 parent::__construct($message, $code, $previous); -
clonable/trunk/readme-da_DK.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme-de_DE.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme-es_ES.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme-fr_FR.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme-it_IT.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme-nb_NO.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme-nl_NL.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Verouderingswaarschuwingen voor impliciet nullable parameters opgelost: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Support voor optionele bestanden in multipart/form-data formulieren 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme-sv_SE.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/readme.txt
r3307078 r3313284 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 2.5. 27 Stable tag: 2.5.3 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.5.3 35 Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 36 Added support for optional files in multipart/form-data forms 37 34 38 v2.5.2 35 39 Added new multi-currency cookie compatibility script -
clonable/trunk/services/ApiService.php
r3234826 r3313284 21 21 * @throws CurlException cannot connect to the clonable api 22 22 */ 23 public static function get_user( string $api_key = null): ApiResponse {23 public static function get_user(?string $api_key = null): ApiResponse { 24 24 $cached_user = get_transient('clonable_cached_user'); 25 25 if (!empty($cached_user['user'])) { -
clonable/trunk/services/SubfolderService.php
r3302098 r3313284 213 213 } 214 214 215 // build content disposition file header for multipart input 215 // ======== Optional file uploads ======== 216 // --------------------------------------- 217 // For optional files, filenames can be empty. 218 // But the content-disposition and content-type data should still be added 219 // 220 // Example of optional file upload field data: 221 // Content-Disposition: form-data; name="input_13"; filename="" 222 // Content-Type: application/octet-stream 223 $filename = ""; 224 if (isset($file_data['name'])) { 225 $filename = $file_data['name']; 226 } 227 228 // build content disposition file header for multipart input (file uploads) 216 229 $data .= "--" . $delimiter . $eol 217 . 'Content-Disposition: form-data; name="' . $field_name . '"; filename="' . $file _data['name']. '"' . $eol;230 . 'Content-Disposition: form-data; name="' . $field_name . '"; filename="' . $filename . '"' . $eol; 218 231 if (isset($file_data['type'])) { 219 232 $data .= 'Content-Type: ' . $file_data['type'] .$eol;
Note: See TracChangeset
for help on using the changeset viewer.