Conversation
…debar The sidebar replaced the list view with a "This Navigation Menu is empty." message whenever a menu had no content. That screen dates from #50870, when the sidebar was deliberately read-only. The sidebar has since become editable, so the early return now leaves an empty menu with no way to add its first item. Remove it so empty menus get the same list view and appender as any other menu. The extensible site editor never had this early return. The new tests run against both editors in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxdL4e4Dpj8Z3h78C5wi8K
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: -23 B (0%) Total Size: 8.25 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. should cut and paste individual blocks with collapsed selection in
|

What?
Shows the list view and its appender in the site editor sidebar for an empty Navigation Menu, instead of only "This Navigation Menu is empty."
Why?
That empty screen came from #50870, when the sidebar was read-only. The sidebar is editable now, so the early return just leaves empty menus with no way to add a first item.
How?
Removes the early return so empty menus render like any other menu. The extensible site editor never had it. The new tests run against both editors in CI.
Testing Instructions
+("Add page") button. On trunk, it only shows "This Navigation Menu is empty."+, search for an existing page, and select it.Testing Instructions for Keyboard
Screenshots
Before
After
Use of AI Tools
Claude Code (Claude Opus 5.5) debugged the cause, wrote the tests and fix, and drafted this description. I reviewed the changes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FxdL4e4Dpj8Z3h78C5wi8K