From 096df041b623c91d0b0dc0401240613022cffc65 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 23 Feb 2024 09:43:12 +0000 Subject: [PATCH] Docs: Add a `@since` note for `$preferred_ext` parameter in `wp_mime_type_icon()`. Follow-up to [57687]. See #31352. Built from https://develop.svn.wordpress.org/trunk@57701 git-svn-id: http://core.svn.wordpress.org/trunk@57202 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index d035acb045..2a02400bd1 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -6802,9 +6802,10 @@ function wp_attachment_is_image( $post = null ) { * Retrieves the icon for a MIME type or attachment. * * @since 2.1.0 + * @since 6.5.0 Added the `$preferred_ext` parameter. * * @param string|int $mime MIME type or attachment ID. - * @param string $preferred_ext File format to prefer in return. Default .png. + * @param string $preferred_ext File format to prefer in return. Default '.png'. * @return string|false Icon, false otherwise. */ function wp_mime_type_icon( $mime = 0, $preferred_ext = '.png' ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 2ff3b40427..9150c47cee 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-beta2-57700'; +$wp_version = '6.5-beta2-57701'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.