WordPress.org

Make WordPress Core

Changeset 29527


Ignore:
Timestamp:
08/18/2014 02:25:43 AM (5 years ago)
Author:
wonderboymusic
Message:

Media Grid: Don't show attachment details in the "sidebar" for errors.

Props ocean90.
Fixes #29037.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r29526 r29527  
    477477}
    478478
     479.sidebar-for-errors .attachment-details,
     480.sidebar-for-errors .compat-item,
     481.sidebar-for-errors .media-progress-bar,
     482.sidebar-for-errors .upload-details {
     483    display: none !important;
     484}
    479485
    480486/**
  • trunk/src/wp-includes/js/media-views.js

    r29507 r29527  
    57725772            if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {
    57735773                this.$el.addClass( 'hide-sidebar' );
     5774
     5775                if ( 'errors' === this.options.sidebar ) {
     5776                    this.$el.addClass( 'sidebar-for-errors' );
     5777                }
    57745778            }
    57755779
Note: See TracChangeset for help on using the changeset viewer.