diff --git a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php index cc2ce97..0f8e565 100644 --- a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php +++ b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php @@ -17,7 +17,24 @@ foreach ( PledgeMeta\get_pledge_meta_config() as $key => $config ) { $contributors = Contributor\get_pledge_contributors( get_the_ID() ); $count = count( $contributors ); +$allowed_html = array_merge( + wp_kses_allowed_html( 'data' ), + array( + 'span' => array( + 'class' => true + ) + ) +); + +$more = sprintf( + __( '… continue reading %s', 'wporg-5ftf' ), + esc_url( get_permalink() ), + esc_html( get_the_title() ) +); + $content = apply_filters( 'the_content', $data['org-description'] ); +$content = strip_tags( $content ); +$content = wp_trim_words( $content, 55, $more ); $contributor_title = sprintf( esc_html( @@ -53,9 +70,9 @@ $contributor_title = sprintf(
- +