Make WordPress Core

Opened 2 years ago

Closed 2 years ago

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

JS error in the new theme editor when using Navigation Block

Reported by: boniu91's profile Boniu91 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9
Component: General Keywords:
Focuses: Cc:

Description

When navigation menu is present in the template, it's possible to get the JS following error in the 5.9-beta1 version:

GET https://domain.ovh/wp-json/wp/v2/block-navigation-areas?context=edit&_locale=user 404

It comes from:

api-fetch.js?ver=10344e1c9c8c8e297682c94866012479:765

To reproduce:

  1. Go to Themes
  2. Activate TT2
  3. Click on Customize
  4. Make sure navigation block is present

URL is trying to request the non existing endpoint:

wp/v2/block-navigation-areas

Change History (2)

This ticket was mentioned in Slack in #core-test by boniu91. View the logs.


2 years ago

#2 @hellofromTonya
2 years ago

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

Hello @Boniu91,

Welcome back to WordPress Core's Trac! Thank you for testing and reporting this issue.

The issue was reported upstream https://github.com/WordPress/gutenberg/issues/37138, fix merged into Gutenberg here https://github.com/WordPress/gutenberg/pull/37187, and that fix will be backported shortly in Core's PR 2048. Fix is done and will be in 5.9 Beta 3. w00t!

Marking this ticket as upstream.

Note: See TracTickets for help on using tickets.