diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index d34bf313..3f15471e 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -74,7 +74,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { * Fields constructor. */ public function __construct() { - $this->timestamp = current_time( 'timestamp' ); + $this->timestamp = time(); } /** diff --git a/includes/core/class-uploader.php b/includes/core/class-uploader.php index 0706002e..5a66d74d 100644 --- a/includes/core/class-uploader.php +++ b/includes/core/class-uploader.php @@ -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', time() ); if ( strpos( $filename , 'stream_photo_' ) !== false ) { $new_filename = str_replace("stream_photo_","stream_photo_{$extra_hash}_", $filename );