Changeset 63612
- Timestamp:
- 09/14/2026 09:12:31 AM (2 months ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
-
js/media/views/attachments.js (modified) (1 diff)
-
js/media/views/media-frame.js (modified) (1 diff)
-
js/media/views/modal.js (modified) (3 diffs)
-
wp-includes/media-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/attachments.js
r63598 r63612 9 9 10 10 attributes: { 11 role: 'group', 11 12 tabIndex: -1 12 13 }, -
trunk/src/js/media/views/media-frame.js
r63598 r63612 165 165 */ 166 166 createTitle: function( title ) { 167 // A modal's dialog element points `aria-labelledby` at its frame heading. 167 168 title.view = new wp.media.View({ 168 169 controller: this, 169 tagName: 'h1' 170 tagName: 'h1', 171 attributes: this.modal ? { id: this.modal.titleId } : {} 170 172 }); 171 173 }, -
trunk/src/js/media/views/modal.js
r63598 r63612 33 33 }); 34 34 35 this.titleId = _.uniqueId( 'media-frame-title-' ); 36 35 37 this.focusManager = new wp.media.view.FocusManager({ 36 38 el: this.el … … 40 42 * Prepares the data for the modal template. 41 43 * 44 * @since 7.2.0 Added the `titleId` property. 45 * 42 46 * @return {Object} The prepared data. 43 47 */ … … 45 49 return { 46 50 title: this.options.title, 47 hasCloseButton: this.options.hasCloseButton 51 hasCloseButton: this.options.hasCloseButton, 52 titleId: this.titleId 48 53 }; 49 54 }, -
trunk/src/wp-includes/media-template.php
r62819 r63612 179 179 <?php // Template for the media frame: used both in the media grid and in the media modal. ?> 180 180 <script type="text/html" id="tmpl-media-frame"> 181 <div class="media-frame-title" id="media-frame-title"></div>181 <div class="media-frame-title"></div> 182 182 <h2 class="media-frame-menu-heading"><?php _ex( 'Actions', 'media modal menu actions' ); ?></h2> 183 183 <button type="button" class="button button-link media-frame-menu-toggle" aria-expanded="false"> … … 202 202 <?php // Template for the media modal. ?> 203 203 <script type="text/html" id="tmpl-media-modal"> 204 <div id="wp-media-modal" tabindex="0" class="<?php echo $class; ?>" role="dialog" aria-labelledby=" media-frame-title">204 <div id="wp-media-modal" tabindex="0" class="<?php echo $class; ?>" role="dialog" aria-labelledby="{{ data.titleId }}"> 205 205 <# if ( data.hasCloseButton ) { #> 206 206 <button type="button" class="media-modal-close"><span class="media-modal-icon" aria-hidden="true"></span><span class="screen-reader-text">
Note:
See TracChangeset
for help on using the changeset viewer.