Skip to content

Conversation

@GaryJones
Copy link
Contributor

Summary

Adds a proper integration test that uses wp_update_post() to trigger the full WordPress save lifecycle, including revision creation.

The previous test directly called save_post_subscriptions() which didn't catch the bug where the function was called for revisions (which have different post IDs, causing nonce verification to fail).

This test would have caught the issue fixed in 0.10.2.

Test plan

  • composer test:integration -- --filter=NotificationsClassicEditorTest passes

🤖 Generated with Claude Code

@GaryJones GaryJones requested a review from a team as a code owner January 7, 2026 16:45
@GaryJones GaryJones self-assigned this Jan 7, 2026
@GaryJones GaryJones added the type: maintenance Routine maintenance and code quality improvements label Jan 7, 2026
@GaryJones GaryJones added this to the Next milestone Jan 7, 2026
@GaryJones GaryJones merged commit f2de69e into develop Jan 7, 2026
14 checks passed
@GaryJones GaryJones deleted the test/notifications-revision-fix branch January 7, 2026 16:54
@GaryJones GaryJones mentioned this pull request Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Routine maintenance and code quality improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants