Changeset 56425
- Timestamp:
- 08/22/2023 12:45:12 PM (16 months ago)
- Location:
- branches/6.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
-
branches/6.3/src/wp-admin/includes/update-core.php
r56366 r56425 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.