File tree 2 files changed +0
-25
lines changed
2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -305,21 +305,6 @@ private function generate_default_files() {
305
305
if ( ! $ this ->is_dir ( Redux_Core::$ upload_dir ) ) {
306
306
$ this ->mkdir ( Redux_Core::$ upload_dir );
307
307
}
308
-
309
- $ hash_path = trailingslashit ( Redux_Core::$ upload_dir ) . 'hash ' ;
310
- if ( ! $ this ->file_exists ( $ hash_path ) ) {
311
- $ this ->put_contents ( $ hash_path , Redux_Helpers::get_hash () );
312
- }
313
-
314
- $ version_path = trailingslashit ( Redux_Core::$ upload_dir ) . 'version ' ;
315
- if ( ! $ this ->file_exists ( $ version_path ) ) {
316
- $ this ->put_contents ( $ version_path , Redux_Core::$ version );
317
- } else {
318
- $ version_compare = $ this ->get_contents ( $ version_path );
319
- if ( (string ) Redux_Core::$ version !== $ version_compare ) {
320
- $ this ->put_contents ( $ version_path , Redux_Core::$ version );
321
- }
322
- }
323
308
}
324
309
325
310
/**
Original file line number Diff line number Diff line change @@ -480,16 +480,6 @@ public static function cleanFilePath( string $path ): string { // phpcs:ignore W
480
480
return Redux_Functions_Ex::wp_normalize_path ( $ path );
481
481
}
482
482
483
- /**
484
- * Create unique hash.
485
- *
486
- * @return string
487
- */
488
- public static function get_hash (): string {
489
- $ remote_addr = Redux_Core::$ server ['REMOTE_ADDR ' ] ?? '127.0.0.1 ' ;
490
- return md5 ( network_site_url () . '- ' . $ remote_addr );
491
- }
492
-
493
483
/**
494
484
* Get info for specified file.
495
485
*
You can’t perform that action at this time.
0 commit comments