Security Suggestion
-
My static code analysis security scanning tool flagged this block of code:
*/ public function output_structured_data() { if ( $this->structured_data ) { echo '<script type="application/ld+json">' . _wp_specialchars(
From /breadcrumb-block/includes/breadcrumbs.php
The error is:
Error( severity 5 ): All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '_wp_specialchars' (WordPress.Security.EscapeOutput.OutputNotEscaped).
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Security Suggestion’ is closed to new replies.