Skip to content

Commit

Permalink
Add a placeholder for missing track titles on the front of the site
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Jan 8, 2025
1 parent 652f58b commit da8af7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/playlist-track/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function render_block_core_playlist_track( $attributes ) {
$artist = isset( $attributes['artist'] ) ? $attributes['artist'] : '';
$image = isset( $attributes['image'] ) ? $attributes['image'] : '';
$length = isset( $attributes['length'] ) ? $attributes['length'] : '';
$title = isset( $attributes['title'] ) ? $attributes['title'] : '';
$title = isset( $attributes['title'] ) && ! empty( $attributes['title'] ) ? $attributes['title'] : __( 'Unknown title' );
$url = isset( $attributes['src'] ) ? $attributes['src'] : '';
$aria_label = $title;

Expand Down

0 comments on commit da8af7e

Please sign in to comment.