Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#48151 new defect (bug)

Setting featured image appears to use site URL instead of WordPress URL

Reported by: zanderz's profile ZanderZ Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2.3
Component: Editor Keywords:
Focuses: Cc:

Description

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.

Change History (2)

This ticket was mentioned in Slack in #core-media by desrosj. View the logs.


5 years ago

#2 @ZanderZ
5 years ago

Update: it's not just featured images. It's (some) pages and custom post types as well.

Note: See TracTickets for help on using tickets.