Remove sanitization method and related calls from Pattern_Builder_API#43
Remove sanitization method and related calls from Pattern_Builder_API#43
Conversation
…. These were cleaning more than necessary and rather unnecessary.
|
Claude finished @pbking's task —— View job Pull Request Code ReviewAfter analyzing the sanitization removal in this PR, I've completed a comprehensive review of the security, code quality, and implementation aspects. Security Concerns
|
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.