Repository navigation
Conversation
🤖 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +698 B (+0.01%) Total Size: 8.73 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. templates can be registered and edited (Site Editor v2) in
|
cca490b to
95ca50a
Compare
c69f8b8 to
39587eb
Compare
95ca50a to
e16125a
Compare
39587eb to
7b923be
Compare
A page's pre-publish panel gains a "Menus" section listing the Navigation Menus that have "Auto add pages" switched on and will get a link to the page when it is published, each linking to the menu in the site editor. The check mirrors the server's: a menu that already links to the page is left out, and a child page is only listed for menus that link to its parent, naming the link it goes under. The link opens the extensible site editor when its experiment is on, and the current site editor otherwise. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0199oMWAas4xDSnjTYeDtPxL
A menu that links to a draft page shows that link once the page is published, whether or not the menu adds pages itself, so the pre-publish panel lists it along with the menus that add a link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0199oMWAas4xDSnjTYeDtPxL
e16125a to
b2f5401
Compare
7b923be to
ce97ed6
Compare
…ion-auto-add-pages-publish-panel # Conflicts: # packages/editor/CHANGELOG.md
…ion-auto-add-pages-publish-panel
…ion-auto-add-pages-publish-panel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S1u1vfDfpUYw8PAkEUWnB7
…ion-auto-add-pages-publish-panel
…ion-auto-add-pages-publish-panel
…ion-auto-add-pages-publish-panel
…ion-auto-add-pages-publish-panel # Conflicts: # packages/editor/CHANGELOG.md
Trunk now requires new files in the e2e tests to be TypeScript (#84829). Menus with "Auto add new pages" on are created through the REST API, since `createNavigationMenu()` takes only a title and content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion-auto-add-pages-publish-panel # Conflicts: # packages/editor/CHANGELOG.md
…ion-auto-add-pages-publish-panel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion-auto-add-pages-publish-panel
What?
A page's pre-publish panel gets a "Menus" section listing the Navigation Menus the page appears in once it is published: the menus that already link to it, whose links go live with the page, and the menus with "Auto add new pages" on that add a link to it. Each menu links to its editor.
Stacked on #85589, which is stacked on #84508 (the "Auto add new pages" setting). The diff against that branch is only this change.
Why?
Part of #85156. Publishing a page now edits menus the author is not looking at. In #16635, where this feature was first discussed, @mtias asked for publish-time feedback that is "a lot more clear and ideally actionable — a link to the menu, a way to preview it". This is that link.
How?
MaybeNavigationMenusPanelinpackages/editorrenders after the other pre-publish suggestions, for thepagepost type only, since only pages are auto-added.wp_navigationrecords and parses their content with the default block parser. A menu that already links to the page is listed as is. For the rest, it keeps the ones withwp_navigation_auto_add_pageson and applies the same check as the server: a child page is listed only for menus that link to its parent, naming the link it goes under.site-editor.php?p=/wp_navigation/<id>, or toadmin.php?page=site-editor-v2&p=/navigation/edit/<id>when the extensible site editor experiment is on (window.__experimentalExtensibleSiteEditor).Testing Instructions
Automated
The extensible site editor link was checked by enabling the experiment on the test site and running the same spec with
GUTENBERG_E2E_SITE_EDITOR_V2=1; the v2 runner only picks upspecs/site-editor/**, so CI covers the current site editor link.🤖 Generated with Claude Code
https://claude.ai/code/session_0199oMWAas4xDSnjTYeDtPxL