Ticket #31502: 31502.patch
File 31502.patch, 799 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/media-views.js
4591 4591 if ( 'abort' === status ) { 4592 4592 return; 4593 4593 } 4594 if ( 'not-embeddable' === response.data.type || 'not-ssl' === response.data.type ) { 4595 this.$( '.embed-container' ).show().find( '.embed-preview' ).html( '<div class="error"><p>' + response.data.message + '</p></div>' ); 4596 return; 4597 } 4594 4598 this.$( '.link-text' ).show(); 4595 4599 }, 4596 4600 … … 4600 4604 if ( html ) { 4601 4605 this.$('.embed-container').show().find('.embed-preview').html( html ); 4602 4606 } else { 4603 this.renderFail( );4607 this.renderFail( response, status ); 4604 4608 } 4605 4609 } 4606 4610 });