Skip to content

Commit 08040fe

Browse files
committed
Ensure all translations are run throgh esc_x and other linting issues
1 parent 146bb88 commit 08040fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

themes/osi/template-parts/content-archive-board-member.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
?>
11-
<?php $content_size = ( 'post' !== get_post_type() && !is_search() ) ? 'three-column' : 'two-column'; ?>
11+
<?php $content_size = ( 'post' !== get_post_type() && ! is_search() ) ? 'three-column' : 'two-column'; ?>
1212
<article id="post-<?php the_ID(); ?>" <?php post_class( 'archive wp-block-column ' . $content_size ); ?>>
1313
<?php get_template_part( 'template-parts/featured-image', 'cropped' ); ?>
1414
<section class="post--summary osi-list--post-content">
@@ -20,7 +20,7 @@
2020
</header><!-- .entry-header -->
2121

2222
<div class="entry-content post--summary">
23-
<p class="member-details">
23+
<p class="member-details">
2424
<?php if ( osi_field_check( 'pronouns' ) ) : ?>
2525
<span class="member-pronouns">
2626
<?php osi_the_valid_field( 'pronouns' ); ?>
@@ -33,13 +33,13 @@
3333
</span>
3434
<?php endif; ?>
3535
</p>
36-
<?php if( osi_field_check( 'current_term_start_date' ) ) : ?>
36+
<?php if ( osi_field_check( 'current_term_start_date' ) ) : ?>
3737
<p class="member-dates">
38-
<?php
39-
echo __( 'Current Term:', 'osi' ) . ' ';
38+
<?php
39+
echo esc_html__( 'Current Term:', 'osi' ) . ' ';
4040
osi_the_valid_date_field( 'current_term_start_date', 'M Y' );
41-
if( osi_field_check( 'current_term_end_date' ) ) :
42-
echo ' ' . __( 'to', 'osi' ) . ' ';
41+
if ( osi_field_check( 'current_term_end_date' ) ) :
42+
echo ' ' . esc_html__( 'to', 'osi' ) . ' ';
4343
osi_the_valid_date_field( 'current_term_end_date', 'M Y' );
4444
endif;
4545
?>

0 commit comments

Comments
 (0)