File tree 1 file changed +6
-2
lines changed
modules/custom-post-types
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,10 @@ static function jetpack_testimonial_shortcode( $atts ) {
434
434
$ atts ['display_content ' ] = false ;
435
435
}
436
436
437
+ if ( $ atts ['image ' ] && 'true ' != $ atts ['image ' ] ) {
438
+ $ atts ['image ' ] = false ;
439
+ }
440
+
437
441
$ atts ['columns ' ] = absint ( $ atts ['columns ' ] );
438
442
439
443
$ atts ['showposts ' ] = intval ( $ atts ['showposts ' ] );
@@ -507,14 +511,14 @@ static function jetpack_testimonial_shortcode_html( $atts ) {
507
511
<div class="testimonial-entry <?php echo esc_attr ( self ::get_testimonial_class ( $ testimonial_index_number , $ atts ['columns ' ] ) ); ?> ">
508
512
<?php
509
513
// The content
510
- if ( false != $ atts ['display_content ' ] ): ?>
514
+ if ( false !== $ atts ['display_content ' ] ): ?>
511
515
<div class="testimonial-entry-content"><?php the_excerpt (); ?> </div>
512
516
<?php endif ; ?>
513
517
514
518
<span class="testimonial-entry-title">― <a href="<?php echo esc_url ( get_permalink () ); ?> " title="<?php echo esc_attr ( the_title_attribute ( ) ); ?> "><?php the_title (); ?> </a></span>
515
519
<?php
516
520
// Featured image
517
- if ( false != $ atts ['image ' ] ):
521
+ if ( false !== $ atts ['image ' ] ) :
518
522
echo self ::get_testimonial_thumbnail_link ( $ post_id );
519
523
endif ;
520
524
?>
You can’t perform that action at this time.
0 commit comments