Plugin Directory

Changeset 3314356


Ignore:
Timestamp:
06/19/2025 07:46:07 AM (10 months ago)
Author:
clonable
Message:

Version 2.5.4

Location:
clonable
Files:
122 added
11 edited

Legend:

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

    r3313284 r3314356  
    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.3
     7Version: 2.5.4
    88Author: Clonable BV
    99Author URI: https://www.clonable.net
     
    114114
    115115define('CLONABLE_NAME', 'Clonable');
    116 define('CLONABLE_VERSION', '2.5.3');
     116define('CLONABLE_VERSION', '2.5.4');
    117117
    118118try {
  • clonable/trunk/readme-da_DK.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme-de_DE.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme-es_ES.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme-fr_FR.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme-it_IT.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme-nb_NO.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme-nl_NL.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Verouderingswaarschuwingen voor impliciet nullable parameters opgelost: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme-sv_SE.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/readme.txt

    r3313284 r3314356  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 2.5.3
     7Stable tag: 2.5.4
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.5.4
     35Fixed problems with null byte files
     36
    3437v2.5.3
    3538Fixed deprecation warnings for implicitly nullable parameters types: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • clonable/trunk/services/SubfolderService.php

    r3313284 r3314356  
    208208
    209209        foreach ($_FILES as $field_name => $file_data) {
    210             $file_content = file_get_contents($file_data['tmp_name']);
    211             if ($file_content === false) {
    212                 continue;
    213             }
    214 
    215210            // ======== Optional file uploads ========
    216211            // ---------------------------------------
    217212            // For optional files, filenames can be empty.
     213            // Even the files themselves can be totally empty.
    218214            // But the content-disposition and content-type data should still be added
    219215            //
     
    234230
    235231            $data .= $eol;
    236             $data .= $file_content . $eol; // append file content
     232            $file_content = file_get_contents($file_data['tmp_name']);
     233            if ($file_content !== false) {
     234                $data .= $file_content . $eol; // append file content (if it's not empty)
     235            }
    237236        }
    238237
Note: See TracChangeset for help on using the changeset viewer.