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
This commit is contained in:
Sergey Biryukov 2022-07-23 15:06:10 +00:00
parent d61b862297
commit 729ab2c971
2 changed files with 11 additions and 9 deletions

View File

@ -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 );
}

View File

@ -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.