You've already forked wp-bootstrap
-
WP Bootstrap 1.0.8
Stablereleased this
2026-02-19 12:23:40 +00:00 | 11 commits to main since this releaseSecurity
- Archive XSS hardening:
ContextBuilder::getArchiveData()now wrapsget_the_archive_title()andget_the_archive_description()withwp_kses_post(). Term descriptions are user-editable by Editors and above; without sanitization an injected<script>tag would execute via the|rawfilter inarchive.html.twig - Comment author XSS hardening:
ContextBuilder::buildCommentTree()now appliesesc_html()tocomment_authorandesc_url()tocomment_author_urlat the data source, preventing injection via user-supplied comment fields - Dark mode localStorage whitelist:
getPreferredTheme()indark-mode.jsnow validates the stored theme value against['dark', 'light']before use, preventing attribute injection from a tampered localStorage value written by a third-party script - Twig escaping functions marked safe:
esc_html(),esc_attr(), andesc_url()registered inTwigServiceare now declared with['is_safe' => ['html']], preventing double-encoding if Twig autoescape is ever enabled
Changed
views/partials/comment-item.html.twig: Comment author URL now output via{{ comment.author_url|raw }}(escaped in PHP) instead of callingesc_url()from the template, keeping escaping logic in one place
Downloads
- Archive XSS hardening: