Changeset 3459803
- Timestamp:
- 02/12/2026 10:34:25 AM (8 days ago)
- Location:
- xpro-elementor-addons/trunk
- Files:
-
- 7 edited
-
changelog.txt (modified) (1 diff)
-
inc/dynamic-content/custom-post-item-api.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
widgets/counter/layout/frontend.php (modified) (1 diff)
-
widgets/site-logo/layout/frontend.php (modified) (2 diffs)
-
widgets/site-logo/site-logo.php (modified) (2 diffs)
-
xpro-elementor-addons.php (modified) (3 diffs)
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 1 7 = V 1.4.23 – 04 Feb 2026 2 8 -
xpro-elementor-addons/trunk/inc/dynamic-content/custom-post-item-api.php
r3453769 r3459803 7 7 class Xpro_Elementor_Post_Item_Api extends Core\Xpro_Elementor_Handler_Api { 8 8 9 10 9 public function config() { 11 10 $this->prefix = 'dynamic-content'; … … 15 14 public function get_content_editor() { 16 15 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 } 19 39 } 20 40 … … 55 75 } 56 76 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 ); 63 81 exit; 64 82 -
xpro-elementor-addons/trunk/readme.txt
r3453769 r3459803 1 1 === Xpro Addons — 140+ Widgets for Elementor === 2 2 Plugin Name: Xpro Addons For Elementor (140+ Widgets & Free Theme Builder) 3 Version: 1.4.2 33 Version: 1.4.24 4 4 Contributors: Xpro 5 5 Tags: elementor, widgets for elementor, elementor widgets, addons for elementor, woocommerce elementor 6 6 Requires at least: 6.0 7 7 Tested up to: 6.9.1 8 Stable tag: 1.4.2 38 Stable tag: 1.4.24 9 9 Requires PHP: 7.4 10 10 License: GPLv2 … … 266 266 == Changelog == 267 267 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 268 274 = V 1.4.23 – 04 Feb 2026 269 275 -
xpro-elementor-addons/trunk/widgets/counter/layout/frontend.php
r3451993 r3459803 2 2 use Elementor\Group_Control_Image_Size; 3 3 use Elementor\Icons_Manager; 4 defined( constant_name: 'ABSPATH' ) || die(); 5 4 defined( 'ABSPATH' ) || die(); 6 5 ?> 7 6 <div class="xpro-counter-wrapper"> -
xpro-elementor-addons/trunk/widgets/site-logo/layout/frontend.php
r2842229 r3459803 2 2 3 3 use Elementor\Utils; 4 use Elementor\Group_Control_Image_Size; 4 5 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(); 6 defined( '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 7 17 $attr = ( 'custom' === $settings['link_type'] && $settings['link']['is_external'] ) ? ' target="_blank"' : ''; 8 18 $attr .= ( 'custom' === $settings['link_type'] && $settings['link']['nofollow'] ) ? ' rel="nofollow"' : ''; … … 26 36 <div class="xpro-site-logo"> 27 37 <?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 } 30 49 ?> 31 50 </div> -
xpro-elementor-addons/trunk/widgets/site-logo/site-logo.php
r3255986 r3459803 48 48 } 49 49 50 50 51 /** 51 52 * Get widget title. … … 91 92 return array( 'xpro-themer' ); 92 93 } 94 95 93 96 94 97 /** -
xpro-elementor-addons/trunk/xpro-elementor-addons.php
r3453769 r3459803 4 4 * Description: A complete Elementor Addons Pack to enhance your web designing experience. Create amazing websites with 50+ FREE Widgets, Extensions & more. 5 5 * Plugin URI: https://elementor.wpxpro.com/ 6 * Version: 1.4.2 36 * Version: 1.4.24 7 7 * Author: Xpro 8 8 * Author URI: https://www.wpxpro.com/ … … 10 10 * Text Domain: xpro-elementor-addons 11 11 * Domain Path: /language 12 * Elementor tested up to: 3.35. 012 * Elementor tested up to: 3.35.4 13 13 * License: GPLv2 14 14 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 69 69 * @var string The plugin version. 70 70 */ 71 const VERSION = '1.4.2 3';71 const VERSION = '1.4.24'; 72 72 73 73 /**
Note: See TracChangeset
for help on using the changeset viewer.