Make WordPress Core

Ticket #63302: 63302.patch

File 63302.patch, 789 bytes (added by dilipbheda, 12 months ago)
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 08f19287af..506fa56b95 100644
    a b function wp_ext2type( $ext ) { 
    30063006
    30073007/**
    30083008 * Returns first matched extension for the mime-type,
    3009  * as mapped from wp_get_mime_types().
     3009 * as mapped from get_allowed_mime_types().
    30103010 *
    30113011 * @since 5.8.1
    30123012 *
    function wp_ext2type( $ext ) { 
    30153015 * @return string|false
    30163016 */
    30173017function wp_get_default_extension_for_mime_type( $mime_type ) {
    3018         $extensions = explode( '|', array_search( $mime_type, wp_get_mime_types(), true ) );
     3018        $extensions = explode( '|', array_search( $mime_type, get_allowed_mime_types(), true ) );
    30193019
    30203020        if ( empty( $extensions[0] ) ) {
    30213021                return false;