Changeset 47550 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r47530 r47550 1216 1216 1217 1217 // Check we can process signatures. 1218 if ( ! function_exists( 'sodium_crypto_sign_verify_detached' ) || ! in_array( 'sha384', array_map( 'strtolower', hash_algos() ) ) ) {1218 if ( ! function_exists( 'sodium_crypto_sign_verify_detached' ) || ! in_array( 'sha384', array_map( 'strtolower', hash_algos() ), true ) ) { 1219 1219 return new WP_Error( 1220 1220 'signature_verification_unsupported', … … 1541 1541 1542 1542 $parent_folder = dirname( $dir ); 1543 while ( ! empty( $parent_folder ) && untrailingslashit( $to ) != $parent_folder && ! in_array( $parent_folder, $needed_dirs ) ) {1543 while ( ! empty( $parent_folder ) && untrailingslashit( $to ) != $parent_folder && ! in_array( $parent_folder, $needed_dirs, true ) ) { 1544 1544 $needed_dirs[] = $parent_folder; 1545 1545 $parent_folder = dirname( $parent_folder ); … … 1667 1667 1668 1668 $parent_folder = dirname( $dir ); 1669 while ( ! empty( $parent_folder ) && untrailingslashit( $to ) != $parent_folder && ! in_array( $parent_folder, $needed_dirs ) ) {1669 while ( ! empty( $parent_folder ) && untrailingslashit( $to ) != $parent_folder && ! in_array( $parent_folder, $needed_dirs, true ) ) { 1670 1670 $needed_dirs[] = $parent_folder; 1671 1671 $parent_folder = dirname( $parent_folder );
Note: See TracChangeset
for help on using the changeset viewer.