diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index 92085ce621..eab3c87794 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -4633,6 +4633,8 @@ this.model.on( 'change', this.render, this ); this.model.on( 'change:title', this._syncTitle, this ); this.model.on( 'change:caption', this._syncCaption, this ); + this.model.on( 'change:artist', this._syncArtist, this ); + this.model.on( 'change:album', this._syncAlbum, this ); this.model.on( 'change:percent', this.progress, this ); // Update the selection. diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index b9cc9111be..be9b6dc1ea 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -522,6 +522,17 @@ function wp_print_media_templates() { + <# if ( 'audio' === data.type ) { #> + __( 'Artist' ), + 'album' => __( 'Album' ), + ) as $key => $label ) : ?> + + + <# } #>