Docs: Align @param tag columns in REST API docblocks - #13312
Docs: Align @param tag columns in REST API docblocks#13312mukeshpanchal27 wants to merge 1 commit into
@param tag columns in REST API docblocks#13312Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018AyprpqvcyKGrDdYmcnQnD
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Trac ticket: https://core.trac.wordpress.org/ticket/65818
The PHP inline documentation standards call for
@paramtags in a docblock to line up in columns — types, variable names, and descriptions each starting at the same offset — with wrapped descriptions indented to the description column:This corrects 17
@paramlines across 7 files in the REST API.Example
src/wp-includes/rest-api/class-wp-rest-server.php— before:after:
Files changed (7)
src/wp-includes/rest-api.phpsrc/wp-includes/rest-api/class-wp-rest-server.phpsrc/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-categories-controller.phpsrc/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.phpsrc/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.phpsrc/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.phpsrc/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.phpPart of a series
The original work was a single branch touching 80 files. It is split by component so each can be reviewed and committed independently:
@paramtag columns in block editor docblocks #13311 — block editor@paramtag columns in REST API docblocks #13312 — REST API (this PR)@paramtag columns in upgrade, plugin, and theme docblocks #13313 — upgrade, plugins, and themes@paramtag columns in users and multisite docblocks #13314 — users and multisite@paramtag columns in post, comment, taxonomy, and media docblocks #13315 — posts, comments, taxonomy, and media@paramtag columns in administration docblocks #13316 — administration@paramtag columns in general core API docblocks #13317 — general core APIsThis is a whitespace-only change:
git diff -wagainsttrunkis empty, so there is no functional change and no change to any generated documentation output beyond the alignment itself.Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Grouping a single large docblock alignment branch into per-component pull requests, verifying that the split is whitespace-only and that the seven branches together reproduce the original diff line for line, and drafting this description. I reviewed the alignment changes before submitting.