diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 1250e36f6f..6bb61cff4e 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -168,7 +168,7 @@ function wp_tempnam( $filename = '', $dir = '' ) { $dir = get_temp_dir(); } - if ( empty( $filename ) || '.' == $filename || '/' == $filename ) { + if ( empty( $filename ) || '.' == $filename || '/' == $filename || '\\' == $filename ) { $filename = time(); }