Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
the_title() changed to the_title_attribute() in html attributes
  • Loading branch information
AlxMedia committed May 31, 2018
1 parent 7ea2aed commit 5509ea5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion functions/widgets/alx-posts.php
Expand Up @@ -58,7 +58,7 @@ public function widget($args, $instance) {
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('slanted-medium'); ?>
<?php else: ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
<img src="<?php echo 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="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
Expand Down
4 changes: 2 additions & 2 deletions functions/widgets/alx-tabs.php
Expand Up @@ -92,7 +92,7 @@ public function widget($args, $instance) {
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('slanted-small'); ?>
<?php else: ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title(); ?>" />
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
Expand Down Expand Up @@ -143,7 +143,7 @@ public function widget($args, $instance) {
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('slanted-small'); ?>
<?php else: ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title(); ?>" />
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
Expand Down
2 changes: 1 addition & 1 deletion inc/related-posts.php
Expand Up @@ -17,7 +17,7 @@
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('slanted-medium'); ?>
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
<img src="<?php echo 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="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
Expand Down

0 comments on commit 5509ea5

Please sign in to comment.