Changeset 44969
- Timestamp:
- 03/21/2019 09:04:49 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/media/views.js
r43347 r44969 152 152 media.view.EditImage = require( '../../../media/views/edit-image.js' ); 153 153 media.view.Spinner = require( '../../../media/views/spinner.js' ); 154 media.view.Heading = require( '../../../media/views/heading.js' ); -
trunk/src/js/media/views/attachments/browser.js
r43309 r44969 62 62 this.createToolbar(); 63 63 64 // Add a heading before the attachments list. 65 this.createAttachmentsHeading(); 66 64 67 // Create the list of attachments. 65 68 this.createAttachments(); … … 408 411 }, 409 412 413 createAttachmentsHeading: function() { 414 this.attachmentsHeading = new wp.media.view.Heading( { 415 text: l10n.attachmentsList, 416 level: 'h2', 417 className: 'media-views-heading screen-reader-text' 418 } ); 419 this.views.add( this.attachmentsHeading ); 420 }, 421 410 422 createSidebar: function() { 411 423 var options = this.options, -
trunk/src/wp-includes/media.php
r44951 r44969 3763 3763 'addToVideoPlaylist' => __( 'Add to video playlist' ), 3764 3764 'addToVideoPlaylistTitle' => __( 'Add to Video Playlist' ), 3765 3766 // Headings 3767 'attachmentsList' => __( 'Attachments list' ), 3765 3768 ); 3766 3769
Note: See TracChangeset
for help on using the changeset viewer.