Skip to content

Commit

Permalink
Use double quotes to echo variables inside strings
Browse files Browse the repository at this point in the history
## What's Broken
$hero_class and $classes variables are being printed, rather than their values printed in the template.

## More Info
See 0a47feb#diff-216f6d639b07286f59ca7d39193160f8R124
  • Loading branch information
rclations authored Dec 8, 2016
1 parent b60a4e5 commit e50a032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/featured-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function largo_get_featured_hero( $post = null, $classes = '' ) {
$featured_media = largo_get_featured_media( $the_post->ID );

$hero_class = largo_hero_class( $the_post->ID, false );
$classes = 'hero $hero_class $classes';
$classes = "hero $hero_class $classes";

$context = array(
'classes' => $classes,
Expand Down

0 comments on commit e50a032

Please sign in to comment.