[wp-trac] [WordPress Trac] #31212: oEmbed discovery fails on XHTML head links
WordPress Trac
noreply at wordpress.org
Mon Feb 2 19:29:29 UTC 2015
#31212: oEmbed discovery fails on XHTML head links
--------------------------+-----------------------------
Reporter: cweiske | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In XHTML, link tags in the HTML head need to be closed:
<link title="test" href="http://example.org/test"/>
Wordpress' oEmbed discovery in `WP_oEmbed::discover()` fails on this.
It extracts the attributes (` title="test"
href="http://example.org/test"/`) and sends it through
`shortcode_parse_atts`. The trailing slash is included even though it's
not part of the attributes.
Either `discover()`'s link tag should not match the slash, or
`shortcode_parse_atts` should be changed to cope with it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31212>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list