PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/block-library/playlist-track.php +6 -5 23.6.2 → 24.1.0 View file →
@@ -26,13 +26,14 @@
26 26 if ( $block instanceof WP_Block && isset( $block->context['showImages'] ) ) {
27 27 $show_images = $block->context['showImages'];
28 28 }
29 29
30 - $artist = $attributes['artist'] ?? '';
31 - $image = $attributes['image'] ?? '';
32 - $alt = $attributes['imageAlt'] ?? '';
33 - $length = $attributes['length'] ?? '';
34 - $title = isset( $attributes['title'] ) && ! empty( $attributes['title'] ) ? $attributes['title'] : __( 'Unknown title' );
30 + $track_image = $attributes['image'] ?? null;
31 + $image = is_string( $track_image ) ? $track_image : '';
32 + $artist = $attributes['artist'] ?? '';
33 + $alt = $attributes['imageAlt'] ?? '';
34 + $length = $attributes['length'] ?? '';
35 + $title = isset( $attributes['title'] ) && ! empty( $attributes['title'] ) ? $attributes['title'] : __( 'Unknown title' );
35 36
36 37 $html = '<li ' . $wrapper_attributes . '>';
37 38 $html .= '<button data-wp-on--click="actions.changeTrack" data-wp-bind--aria-current="state.isCurrentTrack" class="wp-block-playlist-track__button">';
38 39