Make WordPress Core

Ticket #32059: 32059.diff

File 32059.diff, 1.4 KB (added by wonderboymusic, 10 years ago)
  • src/wp-includes/js/media/views/embed/link.js

     
    2727                this.$('.embed-container').hide().find('.embed-preview').empty();
    2828                this.$( '.setting' ).hide();
    2929
    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)?:\/\//) ) ) {
    3233                        return;
    3334                }
    3435
  • src/wp-includes/js/media-views.js

     
    45434543                this.$('.embed-container').hide().find('.embed-preview').empty();
    45444544                this.$( '.setting' ).hide();
    45454545
    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)?:\/\//) ) ) {
    45484549                        return;
    45494550                }
    45504551