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:59:08 +02:00
parent d15988d3c7
commit c047e4988f
3 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('boxstyle-large'); ?>
<?php else: ?>
<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>'; ?>

View file

@ -17,7 +17,7 @@
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('boxstyle-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/boxstyle/
Version: 1.2.2
Requires at least: 5.0
Requires PHP: 5.6
Tested up to: 5.5
Description: <a href="http://alx.media/themes/boxstyle/">Boxstyle</a> is a flexible personal blog theme with plenty of options. Optimized for all devices, this theme will stand out with a unique colorful left bar with social links and a header profile image, name and description. It includes a featured posts slider, a day and night mode switch and three different blog layouts: standard, grid and list. Set the theme to any width and accent color you wish. Disable or enable the wave style. Use a sidebar to the left or right, or disable it entirely - it is all up to you. Demo: http://demo.alx.media/x/?theme=Boxstyle
Author: Alexander Agnarson
Author URI: http://alx.media