Ticket #32059: 32059.diff
File 32059.diff, 1.4 KB (added by , 9 years ago) |
---|
-
src/wp-includes/js/media/views/embed/link.js
27 27 this.$('.embed-container').hide().find('.embed-preview').empty(); 28 28 this.$( '.setting' ).hide(); 29 29 30 // only proceed with embed if the field contains more than 6 characters 31 if ( url && ( url.length < 6 || ! url.match(/^http(s)?:\/\//) ) ) { 30 // only proceed with embed if the field contains more than 11 characters 31 // Example: http://a.io is 11 chars 32 if ( url && ( url.length < 11 || ! url.match(/^http(s)?:\/\//) ) ) { 32 33 return; 33 34 } 34 35 -
src/wp-includes/js/media-views.js
4543 4543 this.$('.embed-container').hide().find('.embed-preview').empty(); 4544 4544 this.$( '.setting' ).hide(); 4545 4545 4546 // only proceed with embed if the field contains more than 6 characters 4547 if ( url && ( url.length < 6 || ! url.match(/^http(s)?:\/\//) ) ) { 4546 // only proceed with embed if the field contains more than 11 characters 4547 // Example: http://a.io is 11 chars 4548 if ( url && ( url.length < 11 || ! url.match(/^http(s)?:\/\//) ) ) { 4548 4549 return; 4549 4550 } 4550 4551