0
From 26b4544b78b44b676220e4fe244a72255321ab02 Mon Sep 17 00:00:00 2001
From: Al Amin Ahamed <34349365+mralaminahamed@users.noreply.github.com>
Date: Fri, 10 May 2024 15:58:24 +0600
Subject: [PATCH 18/53] style: ignore escaping for dynamic content
---
includes/Widgets/BestSellingProducts.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/includes/Widgets/BestSellingProducts.php b/includes/Widgets/BestSellingProducts.php
index a6963e1327..32f7c15bbd 100755
--- a/includes/Widgets/BestSellingProducts.php
+++ b/includes/Widgets/BestSellingProducts.php
@@ -37,9 +37,10 @@ public function widget( $args, $instance ) {
$r = dokan_get_best_selling_products( $no_of_product, $vendor_id, $paged, $hide_outofstock );
- echo $args['before_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
+ echo $args['before_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.OutputNotEscaped
+
if ( ! empty( $title ) ) {
- echo $args['before_title'] . $title . $args['after_title']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
+ echo $args['before_title'] . $title . $args['after_title']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.OutputNotEscaped
}
dokan_get_template_part(
@@ -49,7 +50,7 @@ public function widget( $args, $instance ) {
)
);
- echo $args['after_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
+ echo $args['after_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.OutputNotEscaped
wp_reset_postdata();
}
From f05595c5e241674fbbb453df48caad1c0d672f35 Mon Sep 17 00:00:00 2001
From: Al Amin Ahamed <34349365+mralaminahamed@users.noreply.github.com>
Date: Fri, 10 May 2024 15:58:34 +0600
Subject: [PATCH 19/53] style: ignore escaping for dynamic content
---
includes/Widgets/FilterByAttributes.php | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/includes/Widgets/FilterByAttributes.php b/includes/Widgets/FilterByAttributes.php
index 09978cab34..a7fd37357c 100755
--- a/includes/Widgets/FilterByAttributes.php
+++ b/includes/Widgets/FilterByAttributes.php
@@ -38,9 +38,9 @@ public function widget( $args, $instance ) {
// load frontend script
wp_enqueue_script( 'dokan-frontend' );
- $taxonomy = $this->get_instance_taxonomy( $instance );
- $seller_id = empty( $seller_id ) ? get_query_var( 'author' ) : $seller_id;
- $vendor = dokan()->vendor->get( $seller_id );
+ $taxonomy = $this->get_instance_taxonomy( $instance );
+ $seller_id = empty( $seller_id ) ? get_query_var( 'author' ) : $seller_id;
+ $vendor = dokan()->vendor->get( $seller_id );
if ( ! $vendor instanceof Vendor ) {
return;
@@ -54,16 +54,17 @@ public function widget( $args, $instance ) {
$title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : '';
$query_type = isset( $instance['query_type'] ) ? apply_filters( 'widget_query_type', $instance['query_type'] ) : '';
- echo $args['before_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
+ echo $args['before_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.OutputNotEscaped
+
if ( ! empty( $title ) ) {
- echo $args['before_title'] . $title . $args['after_title']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
+ echo $args['before_title'] . $title . $args['after_title']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.OutputNotEscaped
}
$seller_id = empty( $seller_id ) ? get_query_var( 'author' ) : $seller_id;
dokan_store_term_menu_list( $seller_id, $taxonomy, $query_type );
- echo $args['after_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
+ echo $args['after_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.OutputNotEscaped
wp_reset_postdata();
}
@@ -110,7 +111,7 @@ public function form( $instance ) {
-
+
-
+