[wp-trac] [WordPress Trac] #48151: Setting featured image appears to use site URL instead of WordPress URL
WordPress Trac
noreply at wordpress.org
Thu Sep 26 13:56:15 UTC 2019
#48151: Setting featured image appears to use site URL instead of WordPress URL
--------------------------+-----------------------------
Reporter: ZanderZ | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.2.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Steps to reproduce:
- have a site with a different WordPress URL and site URL (i.e. our site
uses WPML and is configured to have the English site on example.com and
the Dutch site on example.nl)
- go to a page/post/custom post type
- try to set a featured image
WP does a fetch call to https://www.example.com/wp-
json/wp/v2/media/2919?context=edit&_locale=user instead of
https://www.example.nl/wp-json/wp/v2/media/2919?context=edit&_locale=user
which fails because I am logged in to the .nl site, not the .com site
The request fails, no featured image is stored and the spinner keeps
spinning.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48151>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list