[wp-trac] [WordPress Trac] #34207: Leverage the REST API structure for the oEmbed endpoint
WordPress Trac
noreply at wordpress.org
Tue Nov 3 17:17:43 UTC 2015
#34207: Leverage the REST API structure for the oEmbed endpoint
--------------------------------------+---------------------
Reporter: swissspidy | Owner: rmccue
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 4.4
Component: Embeds | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by johnbillion):
Replying to [comment:23 mark-k]:
> Does it mean that I can not have oEmbed provider without REST-API?
Correct, but you don't need to worry because they are both new features in
WordPress 4.4.
> What happens if I already have a wp-json directory on my server? What
happens if I already have a wp-json site on my network?
These are edge cases. The same argument could be applied to any new
feature which requires an endpoint, in which case we would never add any
new features. The `rest_url` filter is available to filter the REST API
endpoint if you do indeed have a site on your network or a subdirectory
named `wp-json`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34207#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list