Plugin Directory

Changeset 3376073


Ignore:
Timestamp:
10/10/2025 06:16:02 AM (6 months ago)
Author:
techeshta
Message:

Enhanced: Security and validation for social media link fields.

Location:
card-elements-for-elementor/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • card-elements-for-elementor/trunk/card-elements-for-elementor.php

    r3278713 r3376073  
    55 * Plugin URI: https://www.techeshta.com/product/card-elements-for-elementor/
    66 * Author: Techeshta
    7  * Version: 1.2.8
     7 * Version: 1.2.9
    88 * Author URI: https://www.techeshta.com
    99 * Elementor tested up to: 3.28.3
     
    5151
    5252    function card_elements_widget_script_register() {
    53     // Register and call Common style       
     53    // Register and call Common style
    5454    wp_register_style('cee-common-card-style', CARD_ELEMENTS_ELEMENTOR_URL . 'assets/css/common-card-style.css', array(), '1.0', false);
    5555        wp_enqueue_style('cee-common-card-style');
    5656
    57     // Register and call Profile card style       
     57    // Register and call Profile card style
    5858    wp_register_style('cee-profile-card-style', CARD_ELEMENTS_ELEMENTOR_URL . 'assets/css/profile-card-style.css', array(), '1.0', false);
    5959        wp_enqueue_style('cee-profile-card-style');
    6060
    61     // Register and call Testimonial card style       
     61    // Register and call Testimonial card style
    6262    wp_register_style('cee-testimonial-card-style', CARD_ELEMENTS_ELEMENTOR_URL . 'assets/css/testimonial-card-style.css',array(), '1.0', false);
    6363        wp_enqueue_style('cee-testimonial-card-style');
    6464
    65     // Register and call Post card style       
     65    // Register and call Post card style
    6666    wp_register_style('cee-post-card-style', CARD_ELEMENTS_ELEMENTOR_URL . 'assets/css/post-card-style.css', array(), '1.0', false);
    6767        wp_enqueue_style('cee-post-card-style');
     
    8383            wp_enqueue_style('font-awesome-5-all-css');
    8484        }
    85        
     85
    8686        if (!wp_style_is('elementor-frontend-css', 'enqueued')) {
    8787            wp_enqueue_style( 'elementor-frontend-css', ELEMENTOR_ASSETS_URL . 'css/frontend.min.css', array() );
     
    106106            wp_enqueue_style('font-awesome-5-all-css');
    107107        }
    108        
     108
    109109        if (!wp_style_is('elementor-frontend-css', 'enqueued')) {
    110110            wp_enqueue_style( 'elementor-frontend-css', ELEMENTOR_ASSETS_URL . 'css/frontend.min.css', array() );
  • card-elements-for-elementor/trunk/include/profile-card/elementor-profile-card-1.php

    r3244795 r3376073  
    2020                        $link_key = 'link_' . $index;
    2121
    22                         $this->add_render_attribute($link_key, 'href', esc_url($item['link']['url']));
     22                        $trim_url = trim($item['link']['url'], '"');
     23
     24                        $this->add_render_attribute($link_key, 'href', esc_url($trim_url));
    2325
    2426                        if ($item['link']['is_external']) {
     
    3032                        }
    3133                        ?>
    32                         <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo esc_attr($this->get_render_attribute_string($link_key)); ?>>
     34                        <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo $this->get_render_attribute_string($link_key); ?>>
    3335                            <span class="elementor-screen-only"><?php echo esc_html(ucwords($social)); ?></span>
    3436                            <i class="<?php echo esc_attr($item['social']); ?>"></i>
  • card-elements-for-elementor/trunk/include/profile-card/elementor-profile-card-11.php

    r3244795 r3376073  
    1414                $link_key = 'link_' . $index;
    1515
    16                 $this->add_render_attribute($link_key, 'href', esc_url($item['link']['url']));
     16                $trim_url = trim($item['link']['url'], '"');
     17
     18                $this->add_render_attribute($link_key, 'href', esc_url($trim_url));
     19
     20                // $this->add_render_attribute($link_key, 'href', esc_url($item['link']['url']));
    1721
    1822                if ($item['link']['is_external']) {
     
    2428                }
    2529                ?>
    26                 <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo esc_attr($this->get_render_attribute_string($link_key)); ?>>
     30                <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo $this->get_render_attribute_string($link_key); ?>>
    2731                    <span class="elementor-screen-only"><?php echo esc_html(ucwords($social)); ?></span>
    2832                    <i class="<?php echo esc_attr($item['social']); ?>"></i>
  • card-elements-for-elementor/trunk/include/profile-card/elementor-profile-card-2.php

    r3244795 r3376073  
    1919                    $link_key = 'link_' . $index;
    2020
    21                     $this->add_render_attribute($link_key, 'href', esc_url($item['link']['url']));
     21                    $trim_url = trim($item['link']['url'], '"');
     22
     23                    $this->add_render_attribute($link_key, 'href', esc_url($trim_url));
    2224
    2325                    if ($item['link']['is_external']) {
     
    2931                    }
    3032                    ?>
    31                     <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo esc_attr($this->get_render_attribute_string($link_key)); ?>>
     33                    <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo $this->get_render_attribute_string($link_key); ?>>
    3234                        <span class="elementor-screen-only"><?php echo esc_html(ucwords($social)); ?></span>
    3335                        <i class="<?php echo esc_attr($item['social']); ?>"></i>
  • card-elements-for-elementor/trunk/include/profile-card/elementor-profile-card-3.php

    r3244795 r3376073  
    2020                    $link_key = 'link_' . $index;
    2121
    22                     $this->add_render_attribute($link_key, 'href', esc_url($item['link']['url']));
     22                    $trim_url = trim($item['link']['url'], '"');
     23
     24                    $this->add_render_attribute($link_key, 'href', esc_url($trim_url));
    2325
    2426                    if ($item['link']['is_external']) {
     
    3032                    }
    3133                    ?>
    32                     <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo esc_attr($this->get_render_attribute_string($link_key)); ?>>
     34                    <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo $this->get_render_attribute_string($link_key); ?>>
    3335                        <span class="elementor-screen-only"><?php echo esc_html(ucwords($social)); ?></span>
    3436                        <i class="<?php echo esc_attr($item['social']); ?>"></i>
  • card-elements-for-elementor/trunk/include/profile-card/elementor-profile-card-4.php

    r3244795 r3376073  
    1919                        $link_key = 'link_' . $index;
    2020
    21                         $this->add_render_attribute($link_key, 'href', esc_url($item['link']['url']));
     21                        $trim_url = trim($item['link']['url'], '"');
     22
     23                        $this->add_render_attribute($link_key, 'href', esc_url($trim_url));
    2224
    2325                        if ($item['link']['is_external']) {
     
    2931                        }
    3032                        ?>
    31                         <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo esc_attr($this->get_render_attribute_string($link_key)); ?>>
     33                        <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo $this->get_render_attribute_string($link_key); ?>>
    3234                            <span class="elementor-screen-only"><?php echo esc_html(ucwords($social)); ?></span>
    3335                            <i class="<?php echo esc_attr($item['social']); ?>"></i>
  • card-elements-for-elementor/trunk/include/profile-card/elementor-profile-card-5.php

    r3244795 r3376073  
    1717                                $link_key = 'link_' . $index;
    1818
    19                                 $this->add_render_attribute($link_key, 'href', esc_url($item['link']['url']));
     19                                $trim_url = trim($item['link']['url'], '"');
     20
     21                                $this->add_render_attribute($link_key, 'href', esc_url($trim_url));
    2022
    2123                                if ($item['link']['is_external']) {
     
    2830                                ?>
    2931
    30                                 <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo esc_attr($this->get_render_attribute_string($link_key)); ?>>
     32                                <a class="elementor-icon elementor-social-icon elementor-social-icon-<?php echo esc_attr($social . $class_animation); ?>" <?php echo $this->get_render_attribute_string($link_key); ?>>
    3133                                    <span class="elementor-screen-only"><?php echo esc_html(ucwords($social)); ?></span>
    3234                                    <i class="<?php echo esc_attr($item['social']); ?>"></i>
  • card-elements-for-elementor/trunk/readme.txt

    r3278713 r3376073  
    33Tags: card elements module, free elementor addon, custom profile card widget, custom testimonial card widget, custom listing card widget
    44Requires at least: 4.4
    5 Tested up to: 6.8
     5Tested up to: 6.8.3
    66Requires PHP: 8.0
    7 Stable tag: 1.2.8
     7Stable tag: 1.2.9
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    136136== Changelog ==
    137137
     138= 1.2.9 =
     139Release date: October 10th, 2025
     140
     141* Fixed: Security and validation for social media link fields.
     142* Updated: Latest WordPress 6.8.3 compatibility Check
     143
    138144= 1.2.8 =
    139145Release date: April 22nd, 2025
Note: See TracChangeset for help on using the changeset viewer.