← All changes
|
src/Addons/RequestAQuote/Frontend/Adapters/AddToCartAdapter.php
+4
-4
7.1.1
→
8.0.2
View file →
| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | $classes = 'button alt wp-element-button tpt-request-quote-trigger tpt-quote-next-to-cart'; |
| 44 | 44 | $idAttr = 'tpt-raq-link-' . esc_attr( $product->get_id() ); |
| 45 | 45 | $style = 'margin-left: 10px;'; |
| 46 | 46 | |
| 47 | - echo ServiceContainer::getInstance()->getFileManager()->renderTemplate( 'frontend/integrated/quote-button.php', | |
| 47 | + echo wp_kses_post( ServiceContainer::getInstance()->getFileManager()->renderTemplate( 'frontend/integrated/quote-button.php', | |
| 48 | 48 | array( |
| 49 | 49 | 'form' => $form, |
| 50 | 50 | 'productId' => $product->get_id(), |
| 51 | 51 | 'classes' => $classes, |
| @@ -52,9 +52,9 @@ | ||
| 52 | 52 | 'idAttr' => $idAttr, |
| 53 | 53 | 'autoOpenQty' => $autoOpenQty, |
| 54 | 54 | 'style' => $style, |
| 55 | 55 | 'content' => esc_html( $form->getPromptText() ), |
| 56 | - ), plugin_dir_path( dirname( __DIR__ ) ) . 'views/' ); | |
| 56 | + ), plugin_dir_path( dirname( __DIR__ ) ) . 'views/' ) ); | |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | public function renderCustomCartForm() { |
| 60 | 60 | if ( $this->hasRendered ) { |
| @@ -83,9 +83,9 @@ | ||
| 83 | 83 | $autoOpenQty = $form->getAutoOpenQuantity(); |
| 84 | 84 | $classes = 'button alt wp-element-button tpt-request-quote-trigger tpt-quote-next-to-cart'; |
| 85 | 85 | $idAttr = 'tpt-raq-link-' . esc_attr( $product->get_id() ); |
| 86 | 86 | |
| 87 | - echo ServiceContainer::getInstance()->getFileManager()->renderTemplate( 'frontend/integrated/quote-button.php', | |
| 87 | + echo wp_kses_post( ServiceContainer::getInstance()->getFileManager()->renderTemplate( 'frontend/integrated/quote-button.php', | |
| 88 | 88 | array( |
| 89 | 89 | 'form' => $form, |
| 90 | 90 | 'productId' => $product->get_id(), |
| 91 | 91 | 'classes' => $classes, |
| @@ -92,9 +92,9 @@ | ||
| 92 | 92 | 'idAttr' => $idAttr, |
| 93 | 93 | 'autoOpenQty' => $autoOpenQty, |
| 94 | 94 | 'style' => '', |
| 95 | 95 | 'content' => esc_html( $form->getPromptText() ), |
| 96 | - ), plugin_dir_path( dirname( __DIR__ ) ) . 'views/' ); | |
| 96 | + ), plugin_dir_path( dirname( __DIR__ ) ) . 'views/' ) ); | |
| 97 | 97 | |
| 98 | 98 | echo '</form>'; |
| 99 | 99 | } |
| 100 | 100 | |