Skip to content

Commit e9c3ff2

Browse files
authored
Merge pull request #321 from BeAPI/fix/esacping-header-vars
fix (theme) : escaping header vars
2 parents b4e0c5a + eb59ef4 commit e9c3ff2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/parts/common/header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<div class="header__inner">
66
<div class="container">
77
<a class="header__logo-link" href="<?php echo esc_url( home_url( '/' ) ); ?>">
8-
<strong><?php echo esc_attr( get_bloginfo( 'name' ) ); ?></strong>
9-
<span class="sr-only"><?php echo esc_attr( get_bloginfo( 'name' ) ); ?></span>
8+
<strong><?php echo esc_html( get_bloginfo( 'name' ) ); ?></strong>
9+
<span class="sr-only"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></span>
1010
</a>
1111

1212
<button class="header__menu-toggle" aria-expanded="false" aria-controls="menu">

header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ function replaceHtmlClass(regexp, str) {
3131
get_template_part( 'components/parts/common/skip-links' );
3232
get_template_part( 'components/parts/common/header' );
3333
?>
34-
<main id="content" role="main" tabindex="-1" aria-label="<?php esc_html_e( 'Main content', 'beapi-frontend-framework' ); ?>">
34+
<main id="content" role="main" tabindex="-1" aria-label="<?php esc_attr_e( 'Main content', 'beapi-frontend-framework' ); ?>">

0 commit comments

Comments
 (0)