Skip to content

Release 0.10.1#875

Merged
GaryJones merged 12 commits intomainfrom
release/0.10.1
Jan 7, 2026
Merged

Release 0.10.1#875
GaryJones merged 12 commits intomainfrom
release/0.10.1

Conversation

@GaryJones
Copy link
Copy Markdown
Contributor

@GaryJones GaryJones commented Jan 7, 2026

Fixed

  • fix: correct nonce action for Classic Editor post saves (#873)
  • fix: return JSON response for user group subscription AJAX saves (#874)

GaryJones and others added 10 commits January 6, 2026 11:45
Added concurrency controls to automatically cancel redundant workflow runs when new commits are pushed to the same branch, preventing resource waste and reducing deployment queue times.

Removed the manual SVN installation step as the 10up/action-wordpress-plugin-deploy action handles this dependency internally, eliminating unnecessary duplication.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move icon-128x128.png from /assets/ to /.wordpress-org/ alongside the other
WordPress.org plugin listing assets (icon-256x256.png, screenshots).

The .wordpress-org/ directory is already in .distignore, so these assets
won't be included in the plugin ZIP but will be deployed to WordPress.org
SVN /assets/ by the 10up deploy action.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The AJAX handler for user group subscriptions was falling through to wp_die()
without returning a proper JSON response, causing the UI to receive an empty
response when users toggled user group checkboxes in the Notifications metabox.
This prevented proper feedback and meant changes wouldn't persist until the
post was saved manually.

The fix ensures user group AJAX saves return wp_send_json_success() with the
same structure as user subscriptions (empty arrays for no_access and no_email,
since user groups don't have individual warning badges).

Comprehensive integration tests verify both user and user group AJAX saves
return valid JSON responses, handle authentication correctly, and persist
subscriptions as expected.
The nonce verification in save_post_subscriptions() was using the wrong
action string ('editpost'), which caused WordPress to reject legitimate
save requests from users with Editor role when using Classic Editor.
Classic Editor's edit form nonces use 'update-post_{$post_id}' as the
action, so the verification must match this to prevent "Cheatin' uh?"
errors on post save.

This regression was introduced in the PHPCS fixes (PR #866) and broke
existing functionality for Editor role users, as reported on the
WordPress.org support forums.

The fix ensures compatibility with Classic Editor whilst maintaining
the security benefits of nonce verification. Integration tests verify
the nonce check now correctly accepts Classic Editor nonces and rejects
those created with the wrong action.

Fixes: https://wordpress.org/support/topic/upgrading-to-0-10-0-breaks-funtionality-for-editor-role/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones GaryJones requested a review from a team as a code owner January 7, 2026 13:06
@GaryJones GaryJones changed the base branch from develop to main January 7, 2026 13:06
@GaryJones GaryJones self-assigned this Jan 7, 2026
@GaryJones GaryJones added the type: release Release-related tasks label Jan 7, 2026
@GaryJones GaryJones added this to the 0.10.1 milestone Jan 7, 2026
@GaryJones GaryJones merged commit 2e783be into main Jan 7, 2026
10 checks passed
@GaryJones GaryJones deleted the release/0.10.1 branch January 7, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: release Release-related tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant