diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
index a834e5e161..34fae58ff9 100644
a
|
b
|
function wp_tempnam( $filename = '', $dir = '' ) { |
624 | 624 | } |
625 | 625 | |
626 | 626 | if ( empty( $filename ) || '.' == $filename || '/' == $filename || '\\' == $filename ) { |
627 | | $filename = time(); |
| 627 | $filename = uniqid( '', true ); |
628 | 628 | } |
629 | 629 | |
630 | 630 | // Use the basename of the given file without the extension as the name for the temporary directory |
… |
… |
function get_filesystem_method( $args = array(), $context = '', $allow_relaxed_f |
1466 | 1466 | |
1467 | 1467 | if ( ! $method ) { |
1468 | 1468 | |
1469 | | $temp_file_name = $context . 'temp-write-test-' . time(); |
| 1469 | $temp_file_name = $context . 'temp-write-test-' . uniqid( '', true ); |
1470 | 1470 | $temp_handle = @fopen($temp_file_name, 'w'); |
1471 | 1471 | if ( $temp_handle ) { |
1472 | 1472 | |