Changeset 56417
- Timestamp:
- 08/18/2023 11:23:33 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r56365 r56417 1432 1432 $lang_dir = WP_CONTENT_DIR . '/languages'; 1433 1433 } 1434 1434 /* 1435 * Note: str_starts_with() is not used here, as this file is included 1436 * when updating from older WordPress versions, in which case 1437 * the polyfills from wp-includes/compat.php may not be available. 1438 */ 1435 1439 // Check if the language directory exists first. 1436 if ( ! @is_dir( $lang_dir ) && str_starts_with( $lang_dir, ABSPATH ) ) {1440 if ( ! @is_dir( $lang_dir ) && 0 === strpos( $lang_dir, ABSPATH ) ) { 1437 1441 // If it's within the ABSPATH we can handle it here, otherwise they're out of luck. 1438 1442 $wp_filesystem->mkdir( $to . str_replace( ABSPATH, '', $lang_dir ), FS_CHMOD_DIR );
Note: See TracChangeset
for help on using the changeset viewer.