wordpress-fieldmanager icon indicating copy to clipboard operation
wordpress-fieldmanager copied to clipboard

Improve escaping of validation JS

Open mboynes opened this issue 2 years ago • 0 comments

Replace the invalid uses of esc_js() and esc_attr() in class-fieldmanager-util-validation.php, e.g. this block and this block, with more appropriate escaping procedures. The entire file warrants review for updated standards. We should perhaps consider deprecating it in favor of something more modern, ideally that doesn't depend on jQuery.

Props @natebot for noticing.

mboynes avatar Sep 01 '22 21:09 mboynes