[wp-trac] [WordPress Trac] #32037: Media views EmbedLink valid URL check
WordPress Trac
noreply at wordpress.org
Tue Apr 21 13:59:59 UTC 2015
#32037: Media views EmbedLink valid URL check
----------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.1
Severity: normal | Keywords:
Focuses: ui, javascript |
----------------------------+-----------------------------
It actually happened to me while testing:
- edit a post
- Add Media > Insert from URL
- paste this into the field:
`ttp://playground.html5rocks.com/samples/html5_misc/chrome_japan.ogv`
notice the missing `h` at the beginning
- the AJAX call is fired regardless
- returns `"success":false,"data":{"type":"not-embeddable" ... `
- the "Link Text" field appears
Worth considering introducing a basic form of valid protocol check? Even a
very simple check would be useful to avoid a useless request and
especially to avoid the "Link Text" field to appear.
Also, it would be great to add some error handling and error messages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32037>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list