Make WordPress Core


Ignore:
Timestamp:
12/15/2012 03:09:50 AM (12 years ago)
Author:
dd32
Message:

When copying new bundled themes & plugins, bail early if the distro doesn't include the bundled item. This prevents us from creating an empty directory in the destination when the source doesn't exist. See #22856

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update-core.php

    r22227 r23179  
    702702                list($type, $filename) = explode('/', $file, 2);
    703703
     704                // Check to see if the bundled items exist before attempting to copy them
     705                if ( ! $wp_filesystem->exists( $from . $distro . 'wp-content/' . $file ) )
     706                    continue;
     707
    704708                if ( 'plugins' == $type )
    705709                    $dest = $wp_filesystem->wp_plugins_dir();
Note: See TracChangeset for help on using the changeset viewer.