- reduced using get_the_time( 'U', $post_id ); and current_time( 'timestamp' );

This commit is contained in:
Mykyta Synelnikov
2023-09-22 20:29:40 +03:00
parent 45a22f371e
commit 01ee8305a2
4 changed files with 28 additions and 24 deletions
+1 -1
View File
@@ -1280,7 +1280,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
//move temporary file from temp directory to the correct user directory
$temp_file_path = UM()->uploader()->get_core_temp_dir() . DIRECTORY_SEPARATOR . $filename;
if ( file_exists( $temp_file_path ) ) {
$extra_hash = hash( 'crc32b', current_time('timestamp') );
$extra_hash = hash( 'crc32b', current_time( 'timestamp' ) );
if ( strpos( $filename , 'stream_photo_' ) !== false ) {
$new_filename = str_replace("stream_photo_","stream_photo_{$extra_hash}_", $filename );