mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Media Grid: Don't show attachment details in the "sidebar" for errors.
Props ocean90. Fixes #29037. Built from https://develop.svn.wordpress.org/trunk@29527 git-svn-id: http://core.svn.wordpress.org/trunk@29303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6d342e812f
commit
29a73daa74
@ -476,6 +476,12 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sidebar-for-errors .attachment-details,
|
||||
.sidebar-for-errors .compat-item,
|
||||
.sidebar-for-errors .media-progress-bar,
|
||||
.sidebar-for-errors .upload-details {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu
|
||||
|
2
wp-includes/css/media-views-rtl.min.css
vendored
2
wp-includes/css/media-views-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -476,6 +476,12 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sidebar-for-errors .attachment-details,
|
||||
.sidebar-for-errors .compat-item,
|
||||
.sidebar-for-errors .media-progress-bar,
|
||||
.sidebar-for-errors .upload-details {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu
|
||||
|
2
wp-includes/css/media-views.min.css
vendored
2
wp-includes/css/media-views.min.css
vendored
File diff suppressed because one or more lines are too long
@ -5771,6 +5771,10 @@
|
||||
|
||||
if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {
|
||||
this.$el.addClass( 'hide-sidebar' );
|
||||
|
||||
if ( 'errors' === this.options.sidebar ) {
|
||||
this.$el.addClass( 'sidebar-for-errors' );
|
||||
}
|
||||
}
|
||||
|
||||
this.collection.on( 'add remove reset', this.updateContent, this );
|
||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user