Plugin Directory

Changeset 3459803


Ignore:
Timestamp:
02/12/2026 10:34:25 AM (8 days ago)
Author:
xpro
Message:

V 1.4.24 – 12 Feb 2026

  • Fix: Site Logo widget issue resolved.
  • Fix: Dynamic source handling issue fixed.
Location:
xpro-elementor-addons/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • xpro-elementor-addons/trunk/changelog.txt

    r3453769 r3459803  
     1= V 1.4.24 – 12 Feb 2026
     2
     3- Fix: Site Logo widget issue resolved.
     4- Fix: Dynamic source handling issue fixed.
     5
     6
    17= V 1.4.23 – 04 Feb 2026
    28
  • xpro-elementor-addons/trunk/inc/dynamic-content/custom-post-item-api.php

    r3453769 r3459803  
    77class Xpro_Elementor_Post_Item_Api extends Core\Xpro_Elementor_Handler_Api {
    88
    9 
    109    public function config() {
    1110        $this->prefix = 'dynamic-content';
     
    1514    public function get_content_editor() {
    1615
    17         if ( ! is_user_logged_in() || ! current_user_can( 'edit_posts' ) ) {
    18             wp_die( __( 'Unauthorized request.', 'xpro-elementor-addons' ), 403 );
     16        $site_url = site_url();
     17
     18        if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
     19            $referer = $_SERVER['HTTP_REFERER'];
     20
     21            if ( strpos( $referer, $site_url ) !== 0 ) {
     22                if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
     23                    return new \WP_Error(
     24                        'rest_forbidden',
     25                        __( 'External requests are not allowed.', 'xpro-elementor-addons' ),
     26                        array( 'status' => 403 )
     27                    );
     28                }
     29                wp_die( 'External access not allowed.', 403 );
     30            }
     31        } else {
     32            if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
     33                return new \WP_Error(
     34                    'rest_forbidden',
     35                    __( 'Direct API access is not allowed.', 'xpro-elementor-addons' ),
     36                    array( 'status' => 403 )
     37                );
     38            }
    1939        }
    2040
     
    5575        }
    5676
    57         $url = get_admin_url() . '/post.php?post=' . $builder_post_id . '&action=elementor';
    58             wp_safe_redirect( $url );
    59             To: $url = admin_url(
    60                 'post.php?post=' . absint( $builder_post_id ) . '&action=elementor'
    61             );
    62             wp_safe_redirect( $url );
     77        $url = admin_url(
     78            'post.php?post=' . absint( $builder_post_id ) . '&action=elementor' );
     79
     80        wp_safe_redirect( $url );
    6381        exit;
    6482       
  • xpro-elementor-addons/trunk/readme.txt

    r3453769 r3459803  
    11=== Xpro Addons — 140+ Widgets for Elementor ===
    22Plugin Name: Xpro Addons For Elementor (140+ Widgets & Free Theme Builder)
    3 Version: 1.4.23
     3Version: 1.4.24
    44Contributors: Xpro
    55Tags: elementor, widgets for elementor, elementor widgets, addons for elementor, woocommerce elementor
    66Requires at least: 6.0
    77Tested up to: 6.9.1
    8 Stable tag: 1.4.23
     8Stable tag: 1.4.24
    99Requires PHP: 7.4
    1010License: GPLv2
     
    266266== Changelog ==
    267267
     268= V 1.4.24 – 12 Feb 2026
     269
     270- Fix: Site Logo widget issue resolved.
     271- Fix: Dynamic source handling issue fixed.
     272
     273
    268274= V 1.4.23 – 04 Feb 2026
    269275
  • xpro-elementor-addons/trunk/widgets/counter/layout/frontend.php

    r3451993 r3459803  
    22use Elementor\Group_Control_Image_Size;
    33use Elementor\Icons_Manager;
    4 defined( constant_name: 'ABSPATH' ) || die();
    5 
     4defined( 'ABSPATH' ) || die();
    65?>
    76<div class="xpro-counter-wrapper">
  • xpro-elementor-addons/trunk/widgets/site-logo/layout/frontend.php

    r2842229 r3459803  
    22
    33use Elementor\Utils;
     4use Elementor\Group_Control_Image_Size;
    45
    5 $image = ( 'custom' === $settings['logo_type'] ) ? $settings['custom_logo']['url'] : get_theme_mod( 'custom_logo' );
    6 $url   = ( 'custom' === $settings['link_type'] && $settings['link']['url'] ) ? $settings['link']['url'] : get_home_url();
     6defined( 'ABSPATH' ) || die();
     7
     8
     9$image = ( 'custom' === $settings['logo_type'] && ! empty( $settings['custom_logo']['id'] ) )
     10    ? $settings['custom_logo']['id']
     11    : get_theme_mod( 'custom_logo' );
     12
     13$url   = ( 'custom' === $settings['link_type'] && $settings['link']['url'] )
     14    ? $settings['link']['url']
     15    : get_home_url();
     16
    717$attr  = ( 'custom' === $settings['link_type'] && $settings['link']['is_external'] ) ? ' target="_blank"' : '';
    818$attr .= ( 'custom' === $settings['link_type'] && $settings['link']['nofollow'] ) ? ' rel="nofollow"' : '';
     
    2636    <div class="xpro-site-logo">
    2737        <?php
    28         $image_markup = ( ! empty( $image ) ) ? wp_get_attachment_image( attachment_url_to_postid( $image ), $settings['thumbnail_size'] ) : '';
    29         echo ! empty( $image_markup ) ? $image_markup : '<img src="' . esc_url( $settings['custom_logo']['url'] ) . '">';
     38        if ( 'default' === $settings['logo_type'] && has_custom_logo() ) {
     39
     40            echo wp_get_attachment_image( $image, $settings['thumbnail_size'] );
     41        } elseif ( 'custom' === $settings['logo_type'] ) {
     42            echo wp_kses(Group_Control_Image_Size::get_attachment_image_html(
     43                $settings,
     44                'thumbnail',
     45                'custom_logo'
     46            ), xpro_allowed_img_kses());
     47
     48        }
    3049        ?>
    3150    </div>
  • xpro-elementor-addons/trunk/widgets/site-logo/site-logo.php

    r3255986 r3459803  
    4848    }
    4949
     50
    5051    /**
    5152     * Get widget title.
     
    9192        return array( 'xpro-themer' );
    9293    }
     94
     95   
    9396
    9497    /**
  • xpro-elementor-addons/trunk/xpro-elementor-addons.php

    r3453769 r3459803  
    44 * Description: A complete Elementor Addons Pack to enhance your web designing experience. Create amazing websites with 50+ FREE Widgets, Extensions & more.
    55 * Plugin URI:  https://elementor.wpxpro.com/
    6  * Version:     1.4.23
     6 * Version:     1.4.24
    77 * Author:      Xpro
    88 * Author URI:  https://www.wpxpro.com/
     
    1010 * Text Domain: xpro-elementor-addons
    1111 * Domain Path: /language
    12  * Elementor tested up to: 3.35.0
     12 * Elementor tested up to: 3.35.4
    1313 * License: GPLv2
    1414 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6969     * @var string The plugin version.
    7070     */
    71     const VERSION = '1.4.23';
     71    const VERSION = '1.4.24';
    7272
    7373    /**
Note: See TracChangeset for help on using the changeset viewer.