Ticket #31077: 31077.patch
File 31077.patch, 2.0 KB (added by , 6 years ago) |
---|
-
src/wp-admin/css/common.css
1298 1298 margin: 5px 0 15px; 1299 1299 } 1300 1300 1301 .wpview-error { 1302 border: 1px solid #dedede; 1303 padding: 1em 0; 1304 margin: 0; 1305 word-wrap: break-word; 1306 } 1307 1308 .wpview-wrap[data-mce-selected] .wpview-error { 1309 border-color: transparent; 1310 } 1311 1312 .wpview-error .dashicons, 1313 .loading-placeholder .dashicons { 1314 display: block; 1315 margin: 0 auto; 1316 width: 32px; 1317 height: 32px; 1318 font-size: 32px; 1319 } 1320 1321 .wpview-error p { 1322 margin: 0; 1323 text-align: center; 1324 font-family: 'Open Sans', sans-serif; 1325 } 1326 1301 1327 #update-nag, 1302 1328 .update-nag { 1303 1329 display: inline-block; -
src/wp-includes/js/media-views.js
7468 7468 post_ID: media.view.settings.post.id, 7469 7469 shortcode: '[embed]' + this.model.get('url') + '[/embed]' 7470 7470 } 7471 } ).done( _.bind( this.renderoEmbed, this ) ); 7471 } ).done( 7472 _.bind( this.renderoEmbed, this ) 7473 ).fail( 7474 _.bind( this.renderoEmbedError, this ) 7475 ); 7472 7476 }, 7473 7477 7474 7478 renderoEmbed: function( response ) { 7475 7479 var html = ( response && response.body ) || ''; 7476 7480 7477 7481 this.spinner.hide(); 7478 7479 7482 this.$('.setting.title').hide(); 7480 7483 this.$('.embed-container').show().find('.embed-preview').html( html ); 7484 }, 7485 7486 renderoEmbedError: function( response ) { 7487 var html = ( response && response.message ) || ''; 7488 7489 if ( ! response ) { 7490 return; 7491 } 7492 if ( ! response.type ) { 7493 return; 7494 } 7495 if ( 'not-ssl' != response.type ) { 7496 return; 7497 } 7498 7499 this.spinner.hide(); 7500 this.$('.setting.title').hide(); 7501 this.$('.embed-container').show().find('.embed-preview').html( '<div class="wpview-content wpview-type-embed"><div class="wpview-error"><div class="dashicons dashicons-admin-media"></div><p>' + html + '</p></div></div>' ); 7481 7502 } 7482 7503 }); 7483 7504