Skip to content

Commit 0128f3d

Browse files
committed
Fix linting errors
1 parent e50511a commit 0128f3d

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

themes/10up-block-theme/includes/blocks/movie-metadata-director/markup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ function ( $director ) {
3737

3838
?>
3939

40-
<dt><?php esc_html_e( $label, 'tenup' ); ?></dt>
40+
<dt><?php echo esc_html( $label ); ?></dt>
4141
<dd><?php echo wp_kses_post( $directors ); ?></dd>

themes/10up-block-theme/includes/blocks/movie-metadata-genre/markup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919

2020
?>
2121

22-
<dt><?php esc_html_e( Genre::get_plural_label(), 'tenup' ); ?></dt>
23-
<dd><?php echo do_blocks( '<!-- wp:post-terms {"term":"'. Genre::get_name() .'"} /-->'); ?></dd>
22+
<dt><?php echo esc_html( Genre::get_plural_label() ); ?></dt>
23+
<dd><?php echo do_blocks( '<!-- wp:post-terms {"term":"' . Genre::get_name() . '"} /-->' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></dd>

themes/10up-block-theme/includes/blocks/movie-metadata-plot/markup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
?>
1919

2020
<dt><?php esc_html_e( 'Plot', 'tenup' ); ?></dt>
21-
<dd><?php esc_html_e( $plot, 'tenup' ); ?></dd>
21+
<dd><?php echo esc_html( $plot ); ?></dd>

themes/10up-block-theme/includes/blocks/movie-metadata-writer/markup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
return;
2727
}
2828

29-
$label = _n( 'Writer', 'Writers', $writers, 'tenup' );
29+
$label = _n( 'Writer', 'Writers', $writers, 'tenup' );
3030
$writers = array_map(
3131
function ( $writer ) {
3232
return sprintf(
@@ -41,5 +41,5 @@ function ( $writer ) {
4141

4242
?>
4343

44-
<dt><?php esc_html_e( $label, 'tenup' ); ?></dt>
44+
<dt><?php echo esc_html( $label ); ?></dt>
4545
<dd><?php echo wp_kses_post( $writers ); ?></dd>

themes/10up-block-theme/includes/blocks/person-metadata-birthplace/markup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
?>
1919

2020
<dt><?php esc_html_e( 'Birthplace', 'tenup' ); ?></dt>
21-
<dd><?php esc_html_e( $birthplace, 'tenup' ); ?></dd>
21+
<dd><?php echo esc_html( $birthplace ); ?></dd>

themes/10up-block-theme/includes/blocks/person-metadata-born/markup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
return;
1616
}
1717

18-
$born = date( 'F j, Y', strtotime( $born ) );
18+
$born = gmdate( 'F j, Y', strtotime( $born ) );
1919

2020
?>
2121

2222
<dt><?php esc_html_e( 'Born', 'tenup' ); ?></dt>
23-
<dd><?php esc_html_e( $born, 'tenup' ); ?></dd>
23+
<dd><?php echo esc_html( $born ); ?></dd>

themes/10up-block-theme/includes/blocks/person-metadata-deathplace/markup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
?>
1919

2020
<dt><?php esc_html_e( 'Deathplace', 'tenup' ); ?></dt>
21-
<dd><?php esc_html_e( $deathplace, 'tenup' ); ?></dd>
21+
<dd><?php echo esc_html( $deathplace ); ?></dd>

themes/10up-block-theme/includes/blocks/person-metadata-died/markup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
return;
1616
}
1717

18-
$died = date( 'F j, Y', strtotime( $died ) );
18+
$died = gmdate( 'F j, Y', strtotime( $died ) );
1919

2020
?>
2121

2222
<dt><?php esc_html_e( 'Died', 'tenup' ); ?></dt>
23-
<dd><?php esc_html_e( $died, 'tenup' ); ?></dd>
23+
<dd><?php echo esc_html( $died ); ?></dd>

0 commit comments

Comments
 (0)