WordPress.org

Make WordPress Core

Changeset 27756


Ignore:
Timestamp:
03/26/2014 10:55:10 PM (6 years ago)
Author:
nacin
Message:

Properly render the image details modal when the image references an invalid attachment.

props gcorne.
fixes #27537.

File:
1 edited

Legend:

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

    r27658 r27756  
    59315931            var self = this,
    59325932                args = arguments;
     5933
    59335934            if ( this.model.attachment && 'pending' === this.model.dfd.state() ) {
    5934                 // should instead show a spinner when the attachment is new and then add a listener that updates on change
    59355935                this.model.dfd.done( function() {
     5936                    media.view.Settings.AttachmentDisplay.prototype.render.apply( self, args );
     5937                    self.resetFocus();
     5938                } ).fail( function() {
     5939                    self.model.attachment = false;
    59365940                    media.view.Settings.AttachmentDisplay.prototype.render.apply( self, args );
    59375941                    self.resetFocus();
Note: See TracChangeset for help on using the changeset viewer.