No need to echo. Removed also for security.

This commit is contained in:
LebCit
2020-12-04 22:53:24 +02:00
parent 25ccf3cd28
commit dcd1382fd7
+3 -3
View File
@@ -137,15 +137,15 @@ class Full_Screen_Morphing_Search {
<?php
if ( has_post_thumbnail() ) {
?>
<a href="<?php echo the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php
} else {
?>
<a href="<?php echo the_permalink(); ?>" class="fsmsp-article-link" title="<?php the_title_attribute(); ?>">
<a href="<?php the_permalink(); ?>" class="fsmsp-article-link" title="<?php the_title_attribute(); ?>">
<?php
}
if ( has_post_thumbnail() ) {
echo the_post_thumbnail( 'full-screen-morphing-search-plugin-thumb', array( 'class' => 'round' ) );
the_post_thumbnail( 'full-screen-morphing-search-plugin-thumb', array( 'class' => 'round' ) );
} else {
if ( empty( $fsmsp_options['fsmsp_article_icon'] ) ) {
echo '<img src="' . esc_url( plugins_url( 'assets/img/article.png', __FILE__ ) ) . '" >';