Repository navigation
Conversation
Collection requests for post types that support excerpts now accept the `excerpt_length` parameter, which was previously available only for single item requests. See #66940. Co-Authored-By: Claude <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
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. |
Registers the `excerpt_length` parameter on post collection endpoints, for post types that support excerpts, with the same definition as the single post endpoint. Requests that list several posts can now ask for an excerpt at a given length through a documented and validated parameter, without filtering the excerpt length globally. Developed in #16511 Follow-up to [58065]. Props swissspidy, wildworks. Fixes #66940. git-svn-id: https://develop.svn.wordpress.org/trunk@65918 602fd350-edb4-49c9-b593-d223f7449a82
Registers the `excerpt_length` parameter on post collection endpoints, for post types that support excerpts, with the same definition as the single post endpoint. Requests that list several posts can now ask for an excerpt at a given length through a documented and validated parameter, without filtering the excerpt length globally. Developed in WordPress/wordpress-develop#16511 Follow-up to [58065]. Props swissspidy, wildworks. Fixes #66940. Built from https://develop.svn.wordpress.org/trunk@65918 git-svn-id: http://core.svn.wordpress.org/trunk@64947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Registers the
excerpt_lengthparameter on post collection endpoints, for post types that support excerpts. It was previously registered only on the single post endpoint, so blocks that list several posts in one collection request, such as the Latest Posts block, could not use it as a documented and validated parameter.Gutenberg PR: WordPress/gutenberg#87973
Trac ticket: https://core.trac.wordpress.org/ticket/66940
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Applying the patch, writing the commit message, and drafting this PR description.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.