Conversation
Moves the logic of `WP_REST_View_Config_Controller::cast_empty_objects()` to a function, so other controllers can serialize empty object-typed values as `{}` rather than `[]`. The method is deprecated in favor of the function.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a server-side registry of the fields of an entity, `WP_Fields_Registry`, filled on the new `fields_api_init` action, where fields are registered, updated, and unregistered. Fields can also be declared as files and registered with `wp_register_field_collection()`. The registered fields and the script modules providing their JavaScript parts are served by the `wp/v2/fields` route. The script modules are declared as dynamic dependencies of the `wp-editor` script, and the fields of the post types the post editor and the site editor list are preloaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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. |
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.
Trac ticket: https://core.trac.wordpress.org/ticket/66229
See: WordPress/gutenberg#83368
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Opus 5.5
Used for: Implementation. Reviewed and edited by me.