Rename ability changesets/stage-page to changesets/stage (v0.3.1) - #14
Merged
Conversation
Co-authored-by: Rich Tabor <rich@tabor.email>
There was a problem hiding this comment.
🟡 Changes recommended
Documentation currently describes an ability (create-staged-page) that doesn’t appear to exist in the codebase and the rename is API-breaking without an explicit compatibility plan.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR renames the Abilities API identifier changesets/stage-page to changesets/stage across code and docs, and bumps the plugin version to 0.3.1 to reflect the change.
Changes:
- Renamed the registered ability from
changesets/stage-pagetochangesets/stage. - Updated documentation and test curl examples to use the new ability identifier.
- Bumped plugin/readme version metadata and added a 0.3.1 changelog entry.
File summaries
| File | Description |
|---|---|
abilities/register.php |
Renames the registered ability identifier to changesets/stage. |
BUILD.md |
Updates the ability identifier in docs/examples. |
TEST.md |
Updates curl examples to call the renamed ability. |
readme.txt |
Bumps stable tag, updates ability list, and adds a 0.3.1 changelog entry. |
changesets.php |
Bumps plugin header version and CS_VERSION constant. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
172
to
174
| wp_register_ability( | ||
| 'changesets/stage-page', | ||
| 'changesets/stage', | ||
| array( |
Comment on lines
+91
to
+93
| | `changesets/stage` | `{ changeset_id, source_post_id }` — clone page/post into changeset | | ||
| | `create-staged-page` | `{ changeset_id, title, content?, slug? }` — brand new page in changeset | | ||
| | `changesets/stage-page` | `{ staged_id, title?, content?, excerpt? }` | | ||
| | `changesets/stage` | `{ staged_id, title?, content?, excerpt? }` | |
| 'changesets/stage-page', | ||
| 'changesets/stage', | ||
| array( | ||
| 'label' => __( 'Stage page', 'changesets' ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rename ability
changesets/stage-page→changesets/stageeverywhere while keeping the same unified behavior and input schema.Changes
abilities/register.phpBUILD.md,TEST.md,readme.txtchangesets.phpandreadme.txtNotes
cs_ability_stage_page) remain unchanged - they're PHP internals and don't affect the external API