summaryrefslogtreecommitdiff
path: root/www/crm/wp-includes/media-template.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-includes/media-template.php')
-rw-r--r--www/crm/wp-includes/media-template.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/www/crm/wp-includes/media-template.php b/www/crm/wp-includes/media-template.php
index d730cac7..d67ef153 100644
--- a/www/crm/wp-includes/media-template.php
+++ b/www/crm/wp-includes/media-template.php
@@ -185,8 +185,8 @@ function wp_print_media_templates() {
</style>
<![endif]-->
<script type="text/html" id="tmpl-media-frame">
+ <div class="media-frame-title" id="media-frame-title"></div>
<div class="media-frame-menu"></div>
- <div class="media-frame-title"></div>
<div class="media-frame-router"></div>
<div class="media-frame-content"></div>
<div class="media-frame-toolbar"></div>
@@ -194,9 +194,11 @@ function wp_print_media_templates() {
</script>
<script type="text/html" id="tmpl-media-modal">
- <div tabindex="0" class="<?php echo $class; ?>">
- <button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></button>
- <div class="media-modal-content"></div>
+ <div tabindex="0" class="<?php echo $class; ?>" role="dialog" aria-modal="true" aria-labelledby="media-frame-title">
+ <# if ( data.hasCloseButton ) { #>
+ <button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close dialog' ); ?></span></span></button>
+ <# } #>
+ <div class="media-modal-content" role="document"></div>
</div>
<div class="media-modal-backdrop"></div>
</script>
@@ -319,6 +321,7 @@ function wp_print_media_templates() {
<div class="edit-media-header">
<button class="left dashicons <# if ( ! data.hasPrevious ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( 'Edit previous media item' ); ?></span></button>
<button class="right dashicons <# if ( ! data.hasNext ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( 'Edit next media item' ); ?></span></button>
+ <button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close dialog' ); ?></span></span></button>
</div>
<div class="media-frame-title"></div>
<div class="media-frame-content"></div>
@@ -1291,9 +1294,9 @@ function wp_print_media_templates() {
<dl class="gallery-item">
<dt class="gallery-icon">
<# if ( attachment.thumbnail ) { #>
- <img src="{{ attachment.thumbnail.url }}" width="{{ attachment.thumbnail.width }}" height="{{ attachment.thumbnail.height }}" alt="" />
+ <img src="{{ attachment.thumbnail.url }}" width="{{ attachment.thumbnail.width }}" height="{{ attachment.thumbnail.height }}" alt="{{ attachment.alt }}" />
<# } else { #>
- <img src="{{ attachment.url }}" alt="" />
+ <img src="{{ attachment.url }}" alt="{{ attachment.alt }}" />
<# } #>
</dt>
<# if ( attachment.caption ) { #>