Skip to content

Bootstrap entity config#11272

Draft
oandregal wants to merge 1 commit intoWordPress:trunkfrom
oandregal:try/entity-config
Draft

Bootstrap entity config#11272
oandregal wants to merge 1 commit intoWordPress:trunkfrom
oandregal:try/entity-config

Conversation

@oandregal
Copy link
Member

@oandregal oandregal commented Mar 17, 2026

NOT READY TO REVIEW/MERGE. It still needs to collect more backports as we iterate on the API in Gutenberg.

Trac ticket: TBD.

What?

Backports the View Config REST API endpoint from Gutenberg to WordPress Core.

Why?

Part of WordPress/gutenberg#76544

How?

  • Backports the View Config REST API endpoint from Gutenberg to WordPress Core. See src/wp-includes/rest-api/endpoints/class-wp-rest-view-config-controller.php endpoint.

Testing Instructions

  1. Start a WordPress development environment.
  2. Log in as an admin user.
  3. Send a GET request to /wp-json/wp/v2/view-config?kind=postType&name=post — verify it returns generic defaults (table view, author/status fields).
  4. Send a GET request to /wp-json/wp/v2/view-config?kind=postType&name=page — verify it returns page-specific config (list view, status sub-views like Published, Drafts, Trash).
  5. Send the same request as an unauthenticated user — verify it returns a rest_cannot_read error.

Use of AI Tools

This backport was prepared with the assistance of Claude Code (Claude Opus 4.6).

@oandregal oandregal self-assigned this Mar 17, 2026
@github-actions
Copy link

Test using WordPress Playground

The 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

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

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