Add esc_url to get_template_directory_uri, Add "Tested up to:" to style.css

This commit is contained in:
Alexander Agnarson 2020-07-12 12:46:55 +02:00
parent daa0dfdde9
commit 2ff8e60178
5 changed files with 5 additions and 4 deletions

View file

@ -6,7 +6,7 @@
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('blogside-medium'); ?>
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?>