Make WordPress Core

Changeset 60696

Timestamp:
08/31/2025 06:53:24 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify return value for wp_get_default_extension_for_mime_type().

Follow-up to [51653].

Props rollybueno, SergeyBiryukov.
See #63166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r60687 r60696  
    30083008
    30093009/**
    3010  * Returns first matched extension for the mime-type,
    3011  * as mapped from wp_get_mime_types().
     3010 * Returns the first matched extension for the mime type, as mapped from wp_get_mime_types().
    30123011 *
    30133012 * @since 5.8.1
    30143013 *
    3015  * @param string $mime_type
    3016  *
    3017  * @return string|false
     3014 * @param string $mime_type The mime type to search.
     3015 * @return string|false The first matching file extension, or false if no extensions are found
     3016 *                      for the given mime type.
    30183017 */
    30193018function wp_get_default_extension_for_mime_type( $mime_type ) {
Note: See TracChangeset for help on using the changeset viewer.