Changeset 51653 for trunk/src/wp-includes/class-wp-image-editor.php
- Timestamp:
- 08/24/2021 08:50:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor.php
r51442 r51653 592 592 */ 593 593 protected static function get_extension( $mime_type = null ) { 594 $extensions = explode( '|', array_search( $mime_type, wp_get_mime_types(), true ) ); 595 596 if ( empty( $extensions[0] ) ) { 594 if ( empty( $mime_type ) ) { 597 595 return false; 598 596 } 599 597 600 return $extensions[0];598 return wp_get_default_extension_for_mime_type( $mime_type ); 601 599 } 602 600 }
Note: See TracChangeset
for help on using the changeset viewer.