Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API: Add text-field and textarea-field as default formats for string sanitization #1187

Closed

Conversation

ocean90
Copy link
Member

@ocean90 ocean90 commented Apr 10, 2021

Probably going to create a separate ticket for this enhancement but it's related to #WP49960.

So far the formats are only used in rest_sanitize_value_from_schema() because I'm not sure how a validation should look like. Do we need one?

Trac ticket: https://core.trac.wordpress.org/ticket/49960


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.

@ocean90 ocean90 force-pushed the feature/rest-api-text-formats branch from aaceeca to f2dba06 Compare April 10, 2021 11:41
@ocean90 ocean90 closed this Dec 8, 2021
@ocean90 ocean90 deleted the feature/rest-api-text-formats branch December 8, 2021 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant