diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index b95539e9b4..1ad1911dbc 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -4543,8 +4543,9 @@ EmbedLink = wp.media.view.Settings.extend({ this.$('.embed-container').hide().find('.embed-preview').empty(); this.$( '.setting' ).hide(); - // only proceed with embed if the field contains more than 6 characters - if ( url && ( url.length < 6 || ! url.match(/^http(s)?:\/\//) ) ) { + // only proceed with embed if the field contains more than 11 characters + // Example: http://a.io is 11 chars + if ( url && ( url.length < 11 || ! url.match(/^http(s)?:\/\//) ) ) { return; } diff --git a/src/wp-includes/js/media/views/embed/link.js b/src/wp-includes/js/media/views/embed/link.js index 0473ca692f..18ba0cdddd 100644 --- a/src/wp-includes/js/media/views/embed/link.js +++ b/src/wp-includes/js/media/views/embed/link.js @@ -27,8 +27,9 @@ EmbedLink = wp.media.view.Settings.extend({ this.$('.embed-container').hide().find('.embed-preview').empty(); this.$( '.setting' ).hide(); - // only proceed with embed if the field contains more than 6 characters - if ( url && ( url.length < 6 || ! url.match(/^http(s)?:\/\//) ) ) { + // only proceed with embed if the field contains more than 11 characters + // Example: http://a.io is 11 chars + if ( url && ( url.length < 11 || ! url.match(/^http(s)?:\/\//) ) ) { return; }