← All changes
|
includes/elementor/modules/product-description/widgets/product-description.php
+4
-2
1.2.2
→
2.7.0
View file →
| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | return 'sellkit-product-description'; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function get_title() { |
| 19 | - return __( 'Product Description', 'sellkit' ); | |
| 19 | + return esc_html__( 'Product Description', 'sellkit' ); | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function get_icon() { |
| 23 | 23 | return 'sellkit-element-icon sellkit-product-description-icon'; |
| @@ -134,12 +134,14 @@ | ||
| 134 | 134 | |
| 135 | 135 | if ( empty( $product ) ) { |
| 136 | 136 | return; |
| 137 | 137 | } |
| 138 | + | |
| 139 | + $short_description = 'short_desc' === $settings['content_type'] ? $product->get_short_description() : $product->get_description(); | |
| 138 | 140 | ?> |
| 139 | 141 | <p class="sellkit-product-description-widget"> |
| 140 | 142 | <?php |
| 141 | - echo 'short_desc' === $settings['content_type'] ? $product->get_short_description() : $product->get_description(); | |
| 143 | + echo wp_kses_post( $short_description ); | |
| 142 | 144 | ?> |
| 143 | 145 | </p> |
| 144 | 146 | <?php |
| 145 | 147 | } |