Make WordPress Core


Ignore:
Timestamp:
07/23/2022 03:04:03 PM (22 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r53766 r53768  
    36313631     * @since 4.9.0
    36323632     *
    3633      * @param array  $metadata    Filtered video metadata.
    3634      * @param string $file        Path to video file.
    3635      * @param string $file_format File format of video, as analyzed by getID3.
    3636      * @param array  $data        Raw metadata from getID3.
     3633     * @param array       $metadata    Filtered video metadata.
     3634     * @param string      $file        Path to video file.
     3635     * @param string|null $file_format File format of video, as analyzed by getID3.
     3636     *                                 Null if unknown.
     3637     * @param array       $data        Raw metadata from getID3.
    36373638     */
    36383639    return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data );
     
    37133714     * @since 6.1.0
    37143715     *
    3715      * @param array  $metadata    Filtered audio metadata.
    3716      * @param string $file        Path to audio file.
    3717      * @param string $file_format File format of audio, as analyzed by getID3.
    3718      * @param array  $data        Raw metadata from getID3.
     3716     * @param array       $metadata    Filtered audio metadata.
     3717     * @param string      $file        Path to audio file.
     3718     * @param string|null $file_format File format of audio, as analyzed by getID3.
     3719     *                                 Null if unknown.
     3720     * @param array       $data        Raw metadata from getID3.
    37193721     */
    37203722    return apply_filters( 'wp_read_audio_metadata', $metadata, $file, $file_format, $data );
Note: See TracChangeset for help on using the changeset viewer.