Skip to content

Commit

Permalink
Add escaping to get_the_password_form()
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Jun 15, 2021
1 parent 97059e1 commit 7ae9a73
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions template-parts/content-password-protected.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,27 @@

<div class="entry-content">
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo get_the_password_form();
echo wp_kses(
get_the_password_form(),
[
'p' => [],
'label' => [
'for' => [],
],
'form' => [
'action' => [],
'class' => [],
'method' => [],
],
'input' => [
'id' => [],
'name' => [],
'size' => [],
'type' => [],
'value' => [],
],
]
);
?>
</div><!-- .entry-content -->

Expand Down

0 comments on commit 7ae9a73

Please sign in to comment.