Make WordPress Core

Ticket #48403: 48403.diff

File 48403.diff, 1.2 KB (added by syhc, 4 years ago)
  • src/js/media/views/attachments/browser.js

    diff --git a/src/js/media/views/attachments/browser.js b/src/js/media/views/attachments/browser.js
    index a757a47f50..4d78d44ce6 100644
    a b AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro 
    4848                        this.createSidebar();
    4949                }
    5050
    51                 /*
    52                  * For accessibility reasons, place the Inline Uploader before other sections.
    53                  * This way, in the Media Library, it's right after the Add New button, see ticket #37188.
    54                  */
    55                 this.createUploader();
    56 
    5751                /*
    5852                 * Create a multi-purpose toolbar. Used as main toolbar in the Media Library
    5953                 * and also for other things, for example the "Drag and drop to reorder" and
    AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro 
    6155                 */
    6256                this.createToolbar();
    6357
     58                /*
     59                 * For accessibility reasons, place the Inline Uploader before other sections.
     60                 * This way, in the Media Library, it's right after the Add New button, see ticket #37188.
     61                 */
     62                this.createUploader();
     63
    6464                // Add a heading before the attachments list.
    6565                this.createAttachmentsHeading();
    6666