[wp-trac] [WordPress Trac] #40111: WP REST API Decode Slug URL
WordPress Trac
noreply at wordpress.org
Wed Mar 15 05:01:47 UTC 2017
#40111: WP REST API Decode Slug URL
-------------------------------+----------------------
Reporter: yogevlahyani | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: REST API | Version:
Severity: normal | Resolution: wontfix
Keywords: reporter-feedback | Focuses:
-------------------------------+----------------------
Changes (by rmccue):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
This has [https://github.com/WP-API/WP-API/issues/2243 previously been
discussed]; slugs are specifically for URLs, and as such, can only contain
characters valid for URLs. All other characters must be encoded using
percent-encoding.
In your API client, you can use `urldecode()` for PHP,
`decodeURIComponent()` for JS, or similar for other languages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40111#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list