WordPress.org

Make WordPress Core

Ticket #17816: 17816.patch

File 17816.patch, 626 bytes (added by ocean90, 4 years ago)
  • wp-admin/includes/update-core.php

     
    373373        $wp_filesystem->put_contents($maintenance_file, $maintenance_string, FS_CHMOD_FILE); 
    374374 
    375375        // Copy new versions of WP files into place. 
    376         $result = _copy_dir($from . $distro, $to, array('wp-content') ); 
     376        $result = _copy_dir($from . $distro, $to, apply_filters( 'update_core_skip_list', array('wp-content') ) ); 
    377377 
    378378        // Custom Content Directory needs updating now. 
    379379        // Copy Languages