From 402e34ac284d4e1c765e1ac580f5390db179e5c2 Mon Sep 17 00:00:00 2001 From: Amir Hossain Date: Mon, 24 Jun 2024 17:30:36 +0600 Subject: [PATCH 1/2] Fixed the security issues --- admin/notices/admin-notices.php | 3 +- admin/notices/notice.php | 2 +- elements/advanced-tab/template/view.php | 2 +- elements/animation-text/template/view.php | 6 - elements/carousel/template/view.php | 6 +- elements/content-carousel/template/view.php | 258 ++++++++++-------- elements/countdown/template/config.php | 2 +- elements/gallery/template/view.php | 18 +- elements/hover-image/template/view.php | 10 +- elements/image-compare/template/view.php | 4 +- elements/image-feature/template/view.php | 13 +- elements/portfolio/template/view.php | 2 +- elements/pricing-1/template/view.php | 9 +- elements/pricing-2/template/view.php | 4 +- elements/pricing-tab/template/view.php | 30 +- elements/site-social/template/view.php | 2 +- elements/slider-1/template/config.php | 2 - elements/slider-1/template/view.php | 146 +++++----- elements/slider-2/template/view.php | 245 +++++++++-------- elements/slider-3/template/view.php | 53 ++-- elements/social-share-1/template/view.php | 4 +- elements/social-share-2/template/view.php | 7 +- elements/team-1/template/view.php | 6 +- elements/team-2/template/view.php | 4 +- elements/team-3/template/view.php | 7 +- elements/team-4/template/view.php | 6 +- elements/team/template/config.php | 22 ++ elements/team/template/view.php | 76 +----- elements/testimonial/template/config.php | 21 +- .../testimonial/template/layout/default.php | 4 +- .../testimonial/template/layout/layout-1.php | 4 +- .../testimonial/template/layout/layout-2.php | 5 +- .../testimonial/template/layout/layout-3.php | 4 +- .../testimonial/template/layout/layout-4.php | 5 +- .../testimonial/template/layout/layout-5.php | 5 +- elements/testimonial/template/view.php | 10 +- elements/tilt-box/template/view.php | 4 +- includes/dependency.php | 11 +- 38 files changed, 488 insertions(+), 534 deletions(-) diff --git a/admin/notices/admin-notices.php b/admin/notices/admin-notices.php index b7f4836..5b15fab 100644 --- a/admin/notices/admin-notices.php +++ b/admin/notices/admin-notices.php @@ -13,7 +13,8 @@ function wk_td_admin_ads()

- Try ThriveDesk', 'widgetkit'); ?> + + Try ThriveDesk

- + diff --git a/elements/animation-text/template/view.php b/elements/animation-text/template/view.php index a5916dd..2bf7c70 100644 --- a/elements/animation-text/template/view.php +++ b/elements/animation-text/template/view.php @@ -1,12 +1,6 @@ get_settings(); - - ?> - -

- - <?php echo esc_attr($project['project_title']); ?> + + <?php echo esc_attr($project['project_title']); ?> @@ -24,7 +24,7 @@
- +
diff --git a/elements/content-carousel/template/view.php b/elements/content-carousel/template/view.php index 485adca..412201f 100644 --- a/elements/content-carousel/template/view.php +++ b/elements/content-carousel/template/view.php @@ -1,153 +1,179 @@ get_settings(); - $id = $this->get_id(); - $header_tag_arr_for_content_carousel = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'span', 'p']; - $content_carousel_custom_header_tag = esc_html(wp_kses($contents['custom_header_tag'], $header_tag_arr_for_content_carousel)); - $content_carousel_post_header_tag = esc_html(wp_kses($contents['post_header_tag'], $header_tag_arr_for_content_carousel)); - use Elementor\Group_Control_Image_Size; - ?> - +
+ +
    + - +

    + \ No newline at end of file diff --git a/elements/countdown/template/config.php b/elements/countdown/template/config.php index 7080e0a..a96472e 100644 --- a/elements/countdown/template/config.php +++ b/elements/countdown/template/config.php @@ -84,7 +84,7 @@ protected function register_controls() { 'picker_options' => [ 'format' => 'Ym/d H:m:s' ], - 'default' => date( "Y/m/d H:m:s", strtotime("+ 1 Day") ), + 'default' => gmdate( "Y/m/d H:m:s", strtotime("+ 1 Day") ), 'description' => esc_html__( 'Date format is (yyyy/mm/dd). Time format is (hh:mm:ss). Example: 2020-01-01 09:30.', 'widgetkit-for-elementor' ) ] ); diff --git a/elements/gallery/template/view.php b/elements/gallery/template/view.php index 91fecf0..5302acd 100644 --- a/elements/gallery/template/view.php +++ b/elements/gallery/template/view.php @@ -58,12 +58,12 @@ - <?php echo esc_attr($gallery['gallery_title']);?> + <?php echo esc_attr($gallery['gallery_title']);?>