Changeset 57239 for trunk/src/wp-admin/includes/class-theme-upgrader.php
- Timestamp:
- 01/03/2024 09:57:32 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-upgrader.php
r56549 r57239 539 539 // Check that the folder contains a valid theme. 540 540 $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source ); 541 if ( ! is_dir( $working_directory ) ) { // Sanitycheck, 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. 542 542 return $source; 543 543 }
Note: See TracChangeset
for help on using the changeset viewer.