Changeset 64588 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/20/2026 05:02:48 AM (14 hours ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r64436 r64588 3510 3510 * @since 6.8.0 Support was added for `audio/x-wav`. 3511 3511 * 3512 * @return string[]Array of mime types keyed by the file extension regex corresponding to those types.3512 * @return array<string, string> Array of mime types keyed by the file extension regex corresponding to those types. 3513 3513 */ 3514 3514 function wp_get_mime_types() { … … 3521 3521 * @since 3.5.0 3522 3522 * 3523 * @param string[]$wp_get_mime_types Mime types keyed by the file extension regex3524 * corresponding to those types.3523 * @param array<string, string> $wp_get_mime_types Mime types keyed by the file extension regex 3524 * corresponding to those types. 3525 3525 */ 3526 3526 return apply_filters( … … 3646 3646 * @since 4.6.0 3647 3647 * 3648 * @return array []Multi-dimensional array of file extensions types keyed by the type of file.3648 * @return array<string, string[]> Multi-dimensional array of file extensions types keyed by the type of file. 3649 3649 */ 3650 3650 function wp_get_ext_types() { … … 3657 3657 * @see wp_ext2type() 3658 3658 * 3659 * @param array []$ext2type Multi-dimensional array of file extensions types keyed by the type of file.3659 * @param array<string, string[]> $ext2type Multi-dimensional array of file extensions types keyed by the type of file. 3660 3660 */ 3661 3661 return apply_filters( … … 3731 3731 * 3732 3732 * @param int|WP_User $user Optional. User to check. Defaults to current user. 3733 * @return string[] Array of mime types keyed by the file extension regex corresponding 3734 * to those types. 3733 * @return array<string, string> Array of mime types keyed by the file extension regex corresponding to those types. 3735 3734 */ 3736 3735 function get_allowed_mime_types( $user = null ) { … … 3751 3750 * @since 2.0.0 3752 3751 * 3753 * @param array $t Mime types keyed by the file extension regex corresponding to those types.3754 * @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user).3752 * @param array<string, string> $t Mime types keyed by the file extension regex corresponding to those types. 3753 * @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user). 3755 3754 */ 3756 3755 return apply_filters( 'upload_mimes', $t, $user );
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)