Remove sanitization method and related calls from Pattern_Builder_API #43
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.
This pull request removes the custom input sanitization logic from the pattern builder API in
includes/class-pattern-builder-api.php. The most significant change is the deletion of thesanitize_pattern_inputmethod and its usage in two places, meaning input data is no longer sanitized by this method before processing. This may affect security and data integrity, so further review is recommended.Sanitization Removal:
$this->sanitize_pattern_input()when updating patterns inhandle_hijack_block_update, so input data is no longer sanitized before being used.sanitize_pattern_inputprivate method, which previously sanitized pattern fields to prevent XSS and ensure data integrity.$this->sanitize_pattern_input()when converting blocks to patterns inhandle_block_to_pattern_conversion, so input data is used as-is.