Make WordPress Core

Ticket #46581: copy-dir-skip-list-bug-fix.diff

File copy-dir-skip-list-bug-fix.diff, 473 bytes (added by codex-m, 6 years ago)

Patch

  • 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() ) { 
    14041404        $to   = trailingslashit( $to );
    14051405
    14061406        foreach ( (array) $dirlist as $filename => $fileinfo ) {
    1407                 if ( in_array( $filename, $skip_list ) ) {
     1407                if ( in_array( $filename, $skip_list, true ) ) {
    14081408                        continue;
    14091409                }
    14101410