Skip to content

Commit

Permalink
Merge branch 'desc-strip-tags'
Browse files Browse the repository at this point in the history
  • Loading branch information
cjg89 committed Jul 26, 2017
2 parents 684fe1e + 84ae1ca commit 011508f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions includes/ucf-events-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,7 @@ function ucf_events_display_modern( $items, $title ) {
</a>
</div>
<div class="ucf-event-description-wrapper">
<?php
if( strlen( $event_description = $event->description ) > $count = 250 ) {
echo substr( $event_description, 0, $count ) . "&hellip;";
} else {
echo $event_description;
}
?>
<?php echo wp_trim_words( $event->description, 40, '&hellip;' ); ?>
</div>
</div>
<?php endforeach; ?>
Expand Down

0 comments on commit 011508f

Please sign in to comment.