Skip to content

Commit 2f596bd

Browse files
committed
minor phpcs fixes
1 parent 8479d14 commit 2f596bd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

themes/osi/template-parts/content-press-mentions.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@
2121
</div><!-- .entry-meta -->
2222

2323
<?php } ?>
24-
<?php
25-
$title = get_field( 'article_url' ) ?
26-
sprintf( '<a href="%s" rel="bookmark" target="_blank">%s</a>',
27-
esc_url( get_field('article_url') ),
24+
<?php
25+
$press_title = get_field( 'article_url' ) ?
26+
sprintf(
27+
'<a href="%s" rel="bookmark" target="_blank">%s</a>',
28+
esc_url( get_field( 'article_url' ) ),
2829
esc_html( get_the_title() )
2930
) :
3031
esc_html( get_the_title() );
31-
32-
echo '<h1 class="entry-title post--title">'.$title.'</h1>';
32+
33+
echo '<h1 class="entry-title post--title">' . wp_kses_post( $press_title ) . '</h1>';
3334
?>
3435

3536
<?php the_content(); ?>

0 commit comments

Comments
 (0)