Fix lang string and esc_attr to esc_html

This commit is contained in:
AlxMedia 2022-09-23 14:46:39 +02:00
parent 6925ef420e
commit 261274051e
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ $highlight = new WP_Query(
<div class="card-articles container-inner"> <div class="card-articles container-inner">
<div class="card-header"> <div class="card-header">
<h2 class="card-header-title"><i class="fas fa-fire"></i> <span><?php esc_html_e('Highlights','magaziner'); ?></span></h2> <h2 class="card-header-title"><i class="fas fa-fire"></i> <span><?php esc_html_e('Highlights','airl'); ?></span></h2>
</div> </div>
<div class="mini-card-grid"> <div class="mini-card-grid">
<?php while ( $highlight->have_posts() ): $highlight->the_post(); ?> <?php while ( $highlight->have_posts() ): $highlight->the_post(); ?>

View file

@ -10,8 +10,8 @@
<span class="header-comments-avatar"><?php echo get_avatar($comment->comment_author_email,$size='96'); ?></span> <span class="header-comments-avatar"><?php echo get_avatar($comment->comment_author_email,$size='96'); ?></span>
<?php $str=explode(' ',get_comment_excerpt($comment->comment_ID)); $comment_excerpt=implode(' ',array_slice($str,0,11)); if(count($str) > 11 && substr($comment_excerpt,-1)!='.') $comment_excerpt.='...' ?> <?php $str=explode(' ',get_comment_excerpt($comment->comment_ID)); $comment_excerpt=implode(' ',array_slice($str,0,11)); if(count($str) > 11 && substr($comment_excerpt,-1)!='.') $comment_excerpt.='...' ?>
<span class="header-comments-inner"> <span class="header-comments-inner">
<strong class="header-comments-title"><?php echo esc_attr( $comment->comment_author ); ?>:</strong> <strong class="header-comments-title"><?php echo esc_html( $comment->comment_author ); ?>:</strong>
<i class="header-comments-excerpt"><?php echo esc_attr( $comment_excerpt ); ?></i> <i class="header-comments-excerpt"><?php echo esc_html( $comment_excerpt ); ?></i>
<i class="fa fa-comments"></i> <i class="fa fa-comments"></i>
</span> </span>
</a> </a>

View file

@ -2,7 +2,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Airl\n" "Project-Id-Version: Airl\n"
"POT-Creation-Date: 2022-09-14 14:27+0200\n" "POT-Creation-Date: 2022-09-23 14:44+0200\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n" "PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"