Make WordPress Core

Opened 4 years ago

Closed 4 years ago

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

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

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

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
4 years ago

  • Milestone Awaiting Review
  • Resolution → reported-upstream
  • Status new → closed
  • Version 6.0 → 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.