diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 6a641658b5..3d91d5f62d 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -3697,7 +3697,22 @@ function wp_read_audio_metadata( $file ) { wp_add_id3_tag_data( $metadata, $data ); - return $metadata; + $file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] : null; + + /** + * Filters the array of metadata retrieved from an audio file. + * + * In core, usually this selection is what is stored. + * More complete data can be parsed from the `$data` parameter. + * + * @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. + */ + 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 64d5314edd..84bf13e032 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53763'; +$wp_version = '6.1-alpha-53764'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.