Skip to content

Commit 0a7460a

Browse files
committed
Changes for removing html markup from tutor_get_formatted_price()
1 parent cb3b692 commit 0a7460a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

includes/tutor-general-functions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,6 @@ function tutor_get_course_formatted_price_html( $course_id, $echo = true ) {
16371637
* @since 3.0.0
16381638
*
16391639
* @param mixed $price Raw price.
1640-
* @param bool $html_markup Whether to include HTML markup ( Only for wooCommerce as it returns html markup ).
16411640
*
16421641
* @return string|void
16431642
*/

templates/dashboard/account/billing/order-history-card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<div class="tutor-billing-card-right">
5555
<div class="tutor-billing-card-amount">
56-
<?php echo esc_html( tutor_get_formatted_price( $order->total_price ) ); ?>
56+
<?php echo wp_kses_post( tutor_get_formatted_price( $order->total_price ) ); ?>
5757
</div>
5858

5959
<?php

0 commit comments

Comments
 (0)