[wp-trac] [WordPress Trac] #46246: get_rest_url() depends depends on get_home_url()
WordPress Trac
noreply at wordpress.org
Wed Feb 13 20:57:42 UTC 2019
#46246: get_rest_url() depends depends on get_home_url()
--------------------------+------------------------
Reporter: pscibisz | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: REST API | Version: 5.0.3
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Comment (by pscibisz):
rest_url don't work if I want to translate url (WP as multisite)
egzample
WP_SITE wp.dev.me/resources (Wordpress)
WP_HOME www.dev.me (Laravel)
Permalink: /resources/{post_name}
Then I can translate permalink in polylang:
resources => en
resources-pl => pl
In edit post I see
www.dev.me/resources/POST_NAME or www.dev.me/resources-pl/POST_NAME
And
WP REST API don't on url wp.dev.me/resources/wp-json
WP search API on url www.dev.me/resources/wp-json
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46246#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list