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:54:27 +02:00
parent d6b7d41fda
commit e61105bf8c
2 changed files with 2 additions and 1 deletions

View file

@ -17,7 +17,7 @@
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('boxcard-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 small"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>

View file

@ -4,6 +4,7 @@ Theme URI: http://alx.media/themes/boxcard/
Version: 1.0.4
Requires at least: 5.0
Requires PHP: 5.6
Tested up to: 5.5
Description: <a href="http://alx.media/themes/boxcard/">Boxcard</a> is a flexible personal blog theme with plenty of options. It is optimized for all devices and built to work with blocks. Blog posts are shown as visually beautiful cards that inspires you to read. You can pick accent color, set sidebar to the left or right and choose website max-width with a few clicks. Demo: http://demo.alx.media/x/?theme=Boxcard
Author: Alexander Agnarson
Author URI: http://alx.media