Ticket #46581: copy-dir-skip-list-bug-fix.diff
File copy-dir-skip-list-bug-fix.diff, 473 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/includes/file.php
diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 03f6e3c..27b6de4 100644
a b function copy_dir( $from, $to, $skip_list = array() ) { 1404 1404 $to = trailingslashit( $to ); 1405 1405 1406 1406 foreach ( (array) $dirlist as $filename => $fileinfo ) { 1407 if ( in_array( $filename, $skip_list ) ) {1407 if ( in_array( $filename, $skip_list, true ) ) { 1408 1408 continue; 1409 1409 } 1410 1410