In `media/views/embed/link.js`, URLs should have a valid protocol before an attempt to fetch them is made.

Fixes #32037.

Built from https://develop.svn.wordpress.org/trunk@32459


git-svn-id: http://core.svn.wordpress.org/trunk@32429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-05-08 18:34:28 +00:00
parent 62d845f32b
commit 31f46f5363
3 changed files with 3 additions and 3 deletions

View File

@ -4546,7 +4546,7 @@ EmbedLink = wp.media.view.Settings.extend({
this.$( '.setting' ).hide();
// only proceed with embed if the field contains more than 6 characters
if ( url && url.length < 6 ) {
if ( url && ( url.length < 6 || ! url.match(/^http(s)?:\/\//) ) ) {
return;
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32458';
$wp_version = '4.3-alpha-32459';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.