Plugin Directory

Changeset 3313284


Ignore:
Timestamp:
06/17/2025 01:29:58 PM (10 months ago)
Author:
clonable
Message:

Version 2.5.3

Location:
clonable
Files:
122 added
15 edited

Legend:

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

    r3307078 r3313284  
    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.5.2
     7Version: 2.5.3
    88Author: Clonable BV
    99Author URI: https://www.clonable.net
     
    114114
    115115define('CLONABLE_NAME', 'Clonable');
    116 define('CLONABLE_VERSION', '2.5.2');
     116define('CLONABLE_VERSION', '2.5.3');
    117117
    118118try {
  • clonable/trunk/exceptions/ApiException.php

    r3234826 r3313284  
    88class ApiException extends Exception
    99{
    10      public function __construct($message = "", $code = 0, Throwable $previous = null)
     10     public function __construct($message = "", $code = 0, ?Throwable $previous = null)
    1111     {
    1212         parent::__construct($message, $code, $previous);
  • clonable/trunk/exceptions/CurlException.php

    r3234826 r3313284  
    88class CurlException extends Exception
    99{
    10     public function __construct($message = "", $code = 0, Throwable $previous = null)
     10    public function __construct($message = "", $code = 0, ?Throwable $previous = null)
    1111    {
    1212        parent::__construct($message, $code, $previous);
  • clonable/trunk/exceptions/ValidationException.php

    r3234826 r3313284  
    88class ValidationException extends Exception
    99{
    10      public function __construct($message = "", $code = 0, Throwable $previous = null)
     10     public function __construct($message = "", $code = 0, ?Throwable $previous = null)
    1111     {
    1212         parent::__construct($message, $code, $previous);
  • clonable/trunk/readme-da_DK.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme-de_DE.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme-es_ES.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme-fr_FR.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme-it_IT.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme-nb_NO.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme-nl_NL.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Verouderingswaarschuwingen voor impliciet nullable parameters opgelost: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Support voor optionele bestanden in multipart/form-data formulieren
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme-sv_SE.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/readme.txt

    r3307078 r3313284  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.2
     7Stable tag: 2.5.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.3
     35Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
     36Added support for optional files in multipart/form-data forms
     37
    3438v2.5.2
    3539Added new multi-currency cookie compatibility script
  • clonable/trunk/services/ApiService.php

    r3234826 r3313284  
    2121     * @throws CurlException cannot connect to the clonable api
    2222     */
    23     public static function get_user(string $api_key = null): ApiResponse {
     23    public static function get_user(?string $api_key = null): ApiResponse {
    2424        $cached_user = get_transient('clonable_cached_user');
    2525        if (!empty($cached_user['user'])) {
  • clonable/trunk/services/SubfolderService.php

    r3302098 r3313284  
    213213            }
    214214
    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)
    216229            $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;
    218231            if (isset($file_data['type'])) {
    219232                $data .= 'Content-Type: ' . $file_data['type'] .$eol;
Note: See TracChangeset for help on using the changeset viewer.