Skip to content

Normalize rich text block attribute schemas for REST validation#12487

Closed
chubes4 wants to merge 1 commit into
WordPress:trunkfrom
chubes4:fix/rest-rich-text-block-attributes
Closed

Normalize rich text block attribute schemas for REST validation#12487
chubes4 wants to merge 1 commit into
WordPress:trunkfrom
chubes4:fix/rest-rich-text-block-attributes

Conversation

@chubes4

@chubes4 chubes4 commented Jul 12, 2026

Copy link
Copy Markdown

Summary

  • map block-only rich-text attributes to the REST-compatible string type at validation boundaries
  • use the normalized schema for renderer-route validation, sanitization, and block render preparation
  • add a renderer regression test that preserves rich-text markup

Testing

  • php -l src/wp-includes/class-wp-block-type.php
  • php -l src/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php
  • php -l tests/phpunit/tests/rest-api/rest-block-renderer-controller.php
  • PHPUnit dependencies are not installed in this worktree.

@github-actions

Copy link
Copy Markdown

Trac Ticket Missing

This pull request is missing a link to a Trac ticket. For a contribution to be considered, there must be a corresponding ticket in Trac.

To attach a pull request to a Trac ticket, please include the ticket's full URL in your pull request description. More information about contributing to WordPress on GitHub can be found in the Core Handbook.

@github-actions

Copy link
Copy Markdown

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props extrachill.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@chubes4

chubes4 commented Jul 12, 2026

Copy link
Copy Markdown
Author

Closing pending a deterministic, reduced-bootstrap reproduction and ownership evidence. No merge or deployment occurred.

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