WordPress.org

Make WordPress Core

Opened 3 weeks ago

Last modified 11 days ago

#48151 new defect (bug)

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

Reported by: ZanderZ Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2.3
Component: Editor Keywords:
Focuses: Cc:
PR Number:

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.


3 weeks ago

#2 @ZanderZ
11 days 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.