[wp-trac] [WordPress Trac] #40758: Wordpress supporting oembed standards ?
WordPress Trac
noreply at wordpress.org
Sun May 14 13:50:22 UTC 2017
#40758: Wordpress supporting oembed standards ?
-------------------------------+------------------------------
Reporter: Arena94 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by Arena94):
Hello,
good point,
here is what i have
<link rel="alternate" type="application/json+oembed"
href="http://127.0.0.1/wordpress/?rest_route=%2Foembed%2F1.0%2Fembed&url=http%3A%2F%2F127.0.0.1%2Fwordpress%2F%3Fp%3D172"
/>
<link rel="alternate" type="text/xml+oembed"
href="http://127.0.0.1/wordpress/?rest_route=%2Foembed%2F1.0%2Fembed&url=http%3A%2F%2F127.0.0.1%2Fwordpress%2F%3Fp%3D172&format=xml"
/>
both links have the following result :
{"code":"rest_missing_callback_param","message":"Missing parameter(s):
url","data":{"status":400,"params":["url"]}}
and what i should have (with a much better result)
http://127.0.0.1/wordpress/?rest_route=/oembed/1.0/embed&url=http%3A%2F%2F127.0.0.1%2Fwordpress%2F%3Fp%3D172
http://127.0.0.1/wordpress/?rest_route=/oembed/1.0/embed&url=http%3A%2F%2F127.0.0.1%2Fwordpress%2F%3Fp%3D172&format=xml
is it ok ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40758#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list