Make WordPress Core


Ignore:
Timestamp:
07/11/2014 09:55:24 PM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid, for audio files: show Bitrate in the Edit Attachments modal a la the Edit Post screen.

See #28839.

File:
1 edited

Legend:

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

    r29029 r29106  
    14641464        $fields['year']             = __( 'Year' );
    14651465        $fields['length_formatted'] = _x( 'Length', 'video or audio' );
     1466    } elseif ( 'js' === $context ) {
     1467        $fields['bitrate']          = __( 'Bitrate' );
     1468        $fields['bitrate_mode']     = __( 'Bitrate Mode' );
    14661469    }
    14671470
     
    27172720
    27182721        $response['meta'] = array();
    2719         foreach ( wp_get_attachment_id3_keys( $attachment ) as $key => $label ) {
     2722        foreach ( wp_get_attachment_id3_keys( $attachment, 'js' ) as $key => $label ) {
    27202723            if ( ! empty( $meta[ $key ] ) ) {
    27212724                $response['meta'][ $key ] = $meta[ $key ];
Note: See TracChangeset for help on using the changeset viewer.