[wp-trac] [WordPress Trac] #37020: get_rest_url() returns wrong path if the site and home url's are different
WordPress Trac
noreply at wordpress.org
Fri Jun 3 17:48:06 UTC 2016
#37020: get_rest_url() returns wrong path if the site and home url's are different
--------------------------+-----------------------------
Reporter: adamf321 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Eg:
If home_url = http://mysite.com and site_url = http://mybackend.com ...
Then get_rest_url( null, 'wp/v2/pages' ) returns 'http://mysite.com/wp-
json/wp/v2/pages'
It should return 'http://mybackend.com/wp-json/wp/v2/pages' (this is the
actual route of the endpoint)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37020>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list