Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#55915 closed defect (bug) (reported-upstream)

404 in gutenberg autosave of a Custom Post Type with custom rest_namespace

Reported by: hgodinho's profile hgodinho Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9
Component: Autosave Keywords:
Focuses: javascript, rest-api Cc:

Description

When registering CPT with register_post_type and passing custom rest_namespace, the block-editor shows a 404 error in console with wp/v2 namespace for autosave.

StackExchange question: https://wordpress.stackexchange.com/questions/406393/404-in-gutenberg-autosave-of-a-custom-post-type-with-custom-rest-namespace

Tom J Nowell has made a PR to fix this: https://github.com/WordPress/gutenberg/pull/41542

Change History (1)

#1 @TimothyBlynJacobs
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Version changed from 6.0 to 5.9

Hi @hgodinho,

Welcome to Trac and thanks for the ticket!

This indeed will need to be fixed in the Gutenberg repository, so I'm going to go ahead and close this issue as reported-upstream since this already has a PR in Gutenberg to fix the issue.

Note: See TracTickets for help on using tickets.