[wp-trac] [WordPress Trac] #49146: Corrupted inner REST API requests.
WordPress Trac
noreply at wordpress.org
Tue Jan 7 17:50:57 UTC 2020
#49146: Corrupted inner REST API requests.
-------------------------------------------------+-------------------------
Reporter: vavra7 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version: 5.3.2
Severity: critical | Keywords: needs-patch
Focuses: accessibility, administration, |
rest-api |
-------------------------------------------------+-------------------------
1) Make clean installation of WordPress on http://some-wp-domain.com (just
example domain - can be random)
2) Go to Settings -> General and change field "Site Address (URL)" to
value "http://decoupled-frontend-domain.com". Hit "Save Changes".
3) Go to Pages -> Sample Page make a random change and hit "Update"
4) ERROR
Reason is that WordPress internal request leads to wrong address:
{{{
http://decoupled-frontend-
domain.com/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F2&_locale=user
}}}
Expected is request pointing to:
{{{
http://some-wp-
domain.com/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F2&_locale=user
}}}
Wordpress is using "siteurl" domain instead of "home" domain for composing
inner REST API request.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49146>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list