Changeset 60703 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/03/2025 12:16:17 PM (14 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r60696 r60703 3173 3173 $finfo = finfo_open( FILEINFO_MIME_TYPE ); 3174 3174 $real_mime = finfo_file( $finfo, $file ); 3175 finfo_close( $finfo ); 3175 3176 if ( PHP_VERSION_ID < 80100 ) { // finfo_close() has no effect as of PHP 8.1. 3177 finfo_close( $finfo ); 3178 } 3176 3179 3177 3180 $google_docs_types = array( … … 3402 3405 $fileinfo = finfo_open( FILEINFO_MIME_TYPE ); 3403 3406 $mime_type = finfo_file( $fileinfo, $file ); 3404 finfo_close( $fileinfo ); 3407 3408 if ( PHP_VERSION_ID < 80100 ) { // finfo_close() has no effect as of PHP 8.1. 3409 finfo_close( $fileinfo ); 3410 } 3405 3411 3406 3412 if ( wp_is_heic_image_mime_type( $mime_type ) ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)