Make WordPress Core


Ignore:
Timestamp:
03/30/2014 07:27:31 PM (11 years ago)
Author:
wonderboymusic
Message:

Metadata for audio and video files:

  • Make attachment metadata for audio files editable by providing a metabox on the Edit Media page
  • Standardize on using the attachment title everywhere
  • Label the Caption and Description fields for audio and video appropriately
  • Make the playlist Underscore templates more straightforward

See #27574.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r27657 r27862  
    140140    add_meta_box( 'submitdiv', __('Save'), 'attachment_submit_meta_box', null, 'side', 'core' );
    141141    add_action( 'edit_form_after_title', 'edit_form_image_editor' );
     142
     143    if ( preg_match( '#^audio#', $post->post_mime_type ) ) {
     144        add_meta_box( 'attachment-id3', __( 'Metadata' ), 'attachment_id3_data_meta_box', null, 'normal', 'core' );
     145    }
    142146} else {
    143147    add_meta_box( 'submitdiv', __( 'Publish' ), 'post_submit_meta_box', null, 'side', 'core', $publish_callback_args );
Note: See TracChangeset for help on using the changeset viewer.