Skip to content

fix(faustwp): keep the View Post link after publishing in the block editor - #2667

Merged
josephfusco merged 5 commits into
canaryfrom
fix/1787-view-post-link
Oct 20, 2026
Merged

josephfusco merged 5 commits into
canaryfrom
fix/1787-view-post-link

Conversation

@josephfusco

@josephfusco josephfusco commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Fixes #1787

The preview script now leaves the save notice's link alone only for publicly published posts, so drafts, pending, scheduled and private posts still get the preview link (the frontend can't show those to visitors); I checked this against the @wordpress/editor 16 notice code and in a jsdom harness for each post status, not by clicking through a live editor. The header preview selector is out of date too, tracked in #2669.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with tracing the save notices in the Gutenberg source, writing the fix, and verifying it in a jsdom harness.

@josephfusco
josephfusco marked this pull request as ready for review October 20, 2026 13:07
@josephfusco
josephfusco requested review from a team and colinmurphy as code owners October 20, 2026 13:07
@josephfusco
josephfusco merged commit 183572b into canary Oct 20, 2026
17 checks passed
@josephfusco
josephfusco deleted the fix/1787-view-post-link branch October 20, 2026 13:07
@github-actions github-actions Bot mentioned this pull request Oct 20, 2026
@josephfusco josephfusco added [Type] Bug An existing feature is broken [Area] WordPress Plugin Issues for the Faust.js WordPress plugin labels Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] WordPress Plugin Issues for the Faust.js WordPress plugin [Type] Bug An existing feature is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: View Post link works as a preview link when publishing posts with the block editor

1 participant