Use wc_format_content() #12861

This commit is contained in:
James Koster 2017-01-18 18:00:08 +00:00
parent f0c35ed45e
commit 01b6471c0b
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
$terms_page_id = wc_get_page_id( 'terms' ); $terms_page_id = wc_get_page_id( 'terms' );
$terms = get_post( $terms_page_id ); $terms = get_post( $terms_page_id );
$terms_content = apply_filters( 'the_content', $terms->post_content ); $terms_content = wc_format_content( $terms->post_content );
if ( $terms_page_id > 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) : ?> if ( $terms_page_id > 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) : ?>
<?php <?php