Site Editor > Patterns: move config to the server#76734
Conversation
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -13 B (0%) Total Size: 7.66 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 61e8da7. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23497616828
|
lib/compat/wordpress-7.1/class-gutenberg-rest-view-config-controller-7-1.php
Show resolved
Hide resolved
lib/compat/wordpress-7.1/class-gutenberg-rest-view-config-controller-7-1.php
Outdated
Show resolved
Hide resolved
| 'perPage' => 20, | ||
| 'titleField' => 'title', | ||
| 'mediaField' => 'preview', | ||
| 'fields' => array( 'author' ), |
There was a problem hiding this comment.
In trunk we don't have the author field in the default view. Is this intentional?
There was a problem hiding this comment.
I thought I'd make it visible because the author filter is primary (always visible), and it's weird to have the list filtered by a field that is not visible.
Part of #76544
Backported at WordPress/wordpress-develop#11272
What?
Moves the default view configuration for wp_block (patterns) and wp_template_part post types from client-side JavaScript to the server-side REST view config controller.
Why?
See #76544
How?
useViewConfighook.Testing Instructions
Use of AI Tools
Claude Code (Claude Opus 4.6) was used to generate this PR description and parts of this code.