Fixes the meta box buttons in the block editor. Upgrade from 0.3.0 is recommended.
Install
Download social-relay-0.3.1.zip below, then in WordPress: Plugins → Add New → Upload Plugin. Upgrading from any earlier version is a plain overwrite — no migration runs, and your settings are preserved.
Requires WordPress 6.5+ and PHP 8.2+.
sha256 599addee23eb1505e710a539ac42156918ac4f75824e6ad1e88c3e59217dbfda
What was wrong in 0.3.0
All three buttons in the Social Relay box on the post edit screen — Cancel scheduled post, Repost now, and the new Post to X now — did nothing in the block editor, which has been the default editor since WordPress 5.0. You clicked, accepted the confirmation, and nothing happened. They were submit buttons inside the meta box form; the block editor wraps that form so submits are swallowed, and its own save carries only the fields, never a button. They only ever worked in the classic editor.
What changed
Each button is now a link to a nonce-protected handler that performs the action and returns you to the editor. Works in both editors. One thing to know: the page reloads, so save first. Because the link bypasses the editor's save, both paid confirmations now say that unsaved edits are not included — if you have just fixed a typo, press Update before you repost.
Verified end to end over HTTP on a real block-editor site, which is the check the test suite had lacked.
Read this before you turn it on
No post from this plugin has reached X in production, and the POST /2/tweets path is still untested against the live API. Press "Send test post" on the settings page before relying on it, or use "Post to X now" on any existing post — either one settles the two open questions about the create-post endpoint.
Versioning
PATCH under VERSIONING.md. A bug fix; one admin_post action added, which the document names as not breaking. No settings key, post meta key, table column, floor or published hook changes. schema_version stays at 1.
Verification
php -l, every file clean
vendor/bin/phpcs clean
vendor/bin/phpstan analyse [OK] No errors
phpunit, full suite (PHP 8.2/WP 6.5) OK (185 tests, 759 assertions)
CI: PHP 8.2 + 8.4, WP 6.5 + latest all green
bin/check-version.sh four version strings agree; tag matches
bin/build.sh 26 files, no dev or spec files
Full detail in CHANGELOG.md.
Full Changelog: v0.3.0...v0.3.1