Skip to content

REST hardening: guest-author creation and post-insert observability#163

Open
dknauss wants to merge 2 commits intohumanmade:developfrom
dknauss:codex/pr-b-guest-author-observability
Open

REST hardening: guest-author creation and post-insert observability#163
dknauss wants to merge 2 commits intohumanmade:developfrom
dknauss:codex/pr-b-guest-author-observability

Conversation

@dknauss
Copy link

@dknauss dknauss commented Mar 7, 2026

Summary

  • harden guest-author username handling in the REST user endpoint
  • improve collision handling when generating guest-author usernames
  • add failure observability for post insert author assignment path
  • extend tests for both guest-author creation and post-save error handling

Files

  • inc/class-users-controller.php
  • inc/class-insert-post-handler.php
  • tests/phpunit/test-rest-api-user-endpoint.php
  • tests/phpunit/test-post-saving.php

Verification

  • composer test:ut (pass; upstream test suite currently emits deprecation/risky noise under PHP 8.5)

Notes

  • This PR intentionally excludes CLI and editor changes.

@dknauss
Copy link
Author

dknauss commented Mar 8, 2026

Fork status update (2026-03-08): fork-first delivery continues on dknauss/authorship:develop.

Keeping this PR open as an optional upstream adoption path; fork delivery is not gated on upstream merge timing.

@dknauss
Copy link
Author

dknauss commented Mar 8, 2026

Material fork update (2026-03-08):

This upstream PR remains open as an optional adoption path; fork delivery continues independently.

@dknauss
Copy link
Author

dknauss commented Mar 8, 2026

Final housekeeping update (2026-03-08):

This PR remains open as an optional upstream adoption path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant