--- a/wp/wp-includes/media-template.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/media-template.php Tue Sep 27 16:37:53 2022 +0200
@@ -28,7 +28,7 @@
if ( ! _.isUndefined( data.model.<?php echo $attr; ?> ) && data.model.<?php echo $attr; ?> ) {
#> <?php echo $attr; ?><#
}
- <?php endforeach ?>#>
+ <?php endforeach; ?>#>
>
<# if ( ! _.isEmpty( data.model.src ) ) { #>
<source src="{{ data.model.src }}" type="{{ wp.media.view.settings.embedMimes[ data.model.src.split('.').pop() ] }}" />
@@ -123,7 +123,7 @@
if ( ! _.isUndefined( data.model.<?php echo $attr; ?> ) && data.model.<?php echo $attr; ?> ) {
#> <?php echo $attr; ?><#
}
- <?php endforeach ?>#>
+ <?php endforeach; ?>#>
>
<# if ( ! _.isEmpty( data.model.src ) ) {
if ( isYouTube ) { #>
@@ -158,7 +158,7 @@
$alt_text_description = sprintf(
/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
- __( '<a href="%1$s" %2$s>Describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
+ __( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
'target="_blank" rel="noopener"',
sprintf(
@@ -320,7 +320,6 @@
<?php // Template for the uploading status UI. ?>
<script type="text/html" id="tmpl-uploader-status">
<h2><?php _e( 'Uploading' ); ?></h2>
- <button type="button" class="button-link upload-dismiss-errors"><span class="screen-reader-text"><?php _e( 'Dismiss Errors' ); ?></span></button>
<div class="media-progress-bar"><div></div></div>
<div class="upload-details">
@@ -331,6 +330,7 @@
<span class="upload-filename"></span>
</div>
<div class="upload-errors"></div>
+ <button type="button" class="button upload-dismiss-errors"><?php _e( 'Dismiss errors' ); ?></button>
</script>
<?php // Template for the uploading status errors. ?>
@@ -1277,7 +1277,7 @@
<button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button>
</span>
<# } #>
- <?php endforeach ?>
+ <?php endforeach; ?>
<# if ( ! _.isEmpty( html5types ) ) { #>
<fieldset class="setting-group">
@@ -1367,7 +1367,7 @@
<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
</span>
<# } #>
- <?php endforeach ?>
+ <?php endforeach; ?>
</div>
<# if ( ! _.isEmpty( html5types ) ) { #>
@@ -1479,7 +1479,7 @@
<?php // Template for the Crop area layout, used for example in the Customizer. ?>
<script type="text/html" id="tmpl-crop-content">
- <img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>">
+ <img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>" />
<div class="upload-errors"></div>
</script>