From 729ab2c9710913daff6eed4757ecf7d0e9ac68b3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 23 Jul 2022 15:06:10 +0000 Subject: [PATCH] Docs: Document that the `$file_format` parameter of metadata filters can be null. This affects the `wp_read_video_metadata` and `wp_read_audio_metadata` filters. Follow-up to [41746], [53764]. See #55646, #55828. Built from https://develop.svn.wordpress.org/trunk@53768 git-svn-id: http://core.svn.wordpress.org/trunk@53327 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 18 ++++++++++-------- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 05832b2d5b..8f699220c7 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -3630,10 +3630,11 @@ function wp_read_video_metadata( $file ) { * * @since 4.9.0 * - * @param array $metadata Filtered video metadata. - * @param string $file Path to video file. - * @param string $file_format File format of video, as analyzed by getID3. - * @param array $data Raw metadata from getID3. + * @param array $metadata Filtered video metadata. + * @param string $file Path to video file. + * @param string|null $file_format File format of video, as analyzed by getID3. + * Null if unknown. + * @param array $data Raw metadata from getID3. */ return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data ); } @@ -3712,10 +3713,11 @@ function wp_read_audio_metadata( $file ) { * * @since 6.1.0 * - * @param array $metadata Filtered audio metadata. - * @param string $file Path to audio file. - * @param string $file_format File format of audio, as analyzed by getID3. - * @param array $data Raw metadata from getID3. + * @param array $metadata Filtered audio metadata. + * @param string $file Path to audio file. + * @param string|null $file_format File format of audio, as analyzed by getID3. + * Null if unknown. + * @param array $data Raw metadata from getID3. */ return apply_filters( 'wp_read_audio_metadata', $metadata, $file, $file_format, $data ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index c4e2a029de..3d3517c626 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53767'; +$wp_version = '6.1-alpha-53768'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.