Skip to content

Commit 485b3c6

Browse files
fix phpunit test case
1 parent b3ff71d commit 485b3c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/files.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function ppom_create_thumb_for_meta( $file_name, $product_id, $cropped = false,
142142
* @return string The new file name.
143143
*/
144144
function ppom_create_unique_file_name( $file_name, $file_ext ) {
145-
return $file_name . "." . base64_encode( substr( wp_hash_password( $file_name ), 0, 8 ) ) . "." . $file_ext;
145+
return $file_name . "." . base64_encode( substr( wp_hash_password( $file_name ), 0, 16 ) ) . "." . $file_ext;
146146
}
147147

148148
final class UploadFileErrors {

0 commit comments

Comments
 (0)