Make WordPress Core

Ticket #60187: class-theme-upgrader.php.diff

File class-theme-upgrader.php.diff, 728 bytes (added by dartiss, 17 months ago)
  • wp-admin/includes/class-theme-upgrader.php

    diff --git a/wp-admin/includes/class-theme-upgrader.php b/wp-admin/includes/class-theme-upgrader.php
    index 12bd4772919c..b1cf6778396b 100644
    a b public function check_package( $source ) { 
    538538
    539539                // Check that the folder contains a valid theme.
    540540                $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source );
    541                 if ( ! is_dir( $working_directory ) ) { // Sanity check, if the above fails, let's not prevent installation.
     541                if ( ! is_dir( $working_directory ) ) { // Confidence check, if the above fails, let's not prevent installation.
    542542                        return $source;
    543543                }
    544544