Changeset 32463
- Timestamp:
- 05/08/2015 08:29:55 PM (10 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r32462 r32463 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 } -
trunk/src/wp-includes/js/media/views/embed/link.js
r32462 r32463 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 }
Note: See TracChangeset
for help on using the changeset viewer.