Media: Restore correct upload errors displaying after [37610].
Props codegeass, MatheusGimenez, joemcgill. Fixes #39516. Built from https://develop.svn.wordpress.org/trunk@40126 git-svn-id: http://core.svn.wordpress.org/trunk@40063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8e56992132
commit
c3a2b57241
|
@ -3772,9 +3772,14 @@ AttachmentsBrowser = View.extend({
|
|||
this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
|
||||
this.controller.on( 'edit:selection', this.editSelection );
|
||||
this.createToolbar();
|
||||
// In the Media Library, the sidebar is used to display errors before the attachments grid.
|
||||
if ( this.options.sidebar && 'errors' === this.options.sidebar ) {
|
||||
this.createSidebar();
|
||||
}
|
||||
this.createUploader();
|
||||
this.createAttachments();
|
||||
if ( this.options.sidebar ) {
|
||||
// For accessibility reasons, place the normal sidebar after the attachments, see ticket #36909.
|
||||
if ( this.options.sidebar && 'errors' !== this.options.sidebar ) {
|
||||
this.createSidebar();
|
||||
}
|
||||
this.updateContent();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-40125';
|
||||
$wp_version = '4.8-alpha-40126';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue