Plugin Directory

Changeset 3221445


Ignore:
Timestamp:
01/13/2025 09:26:23 AM (15 months ago)
Author:
piotnetdotcom
Message:

Update 2.4.33

Location:
piotnet-addons-for-elementor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • piotnet-addons-for-elementor/trunk/piotnet-addons-for-elementor.php

    r3217875 r3221445  
    44 * Description: Piotnet Addons For Elementor (PAFE) adds many new features for Elementor
    55 * Plugin URI:  https://pafe.piotnet.com/
    6  * Version:     2.4.32
     6 * Version:     2.4.33
    77 * Author:      Piotnet
    88 * Author URI:  https://piotnet.com/
     
    1414if ( ! defined( 'ABSPATH' ) ) { exit; }
    1515
    16 define( 'PAFE_VERSION', '2.4.32' );
     16define( 'PAFE_VERSION', '2.4.33' );
    1717
    1818define( 'PAFE_DIR', plugin_dir_path(__FILE__));
     
    174174        }
    175175       
    176         if(get_post_status($atts['id']) === 'draft'  && !current_user_can('edit_post', $atts['id'])){
    177             $is_editor = \Elementor\Plugin::$instance->editor->is_edit_mode();
    178             return $is_editor ? _e('<div class="elementor-alert elementor-alert-danger">Invalid Data: The Template ID cannot be the same as the currently edited template. Please choose a different one.</div>') : '';
     176        if(!current_user_can('read_post', $atts['id'])){
     177            return _e('<div class="elementor-alert elementor-alert-danger">You do not have permission to view this post.</div>');
    179178        }
    180179
  • piotnet-addons-for-elementor/trunk/readme.txt

    r3217875 r3221445  
    55Tested up to: 6.7.1
    66Requires PHP: 5.4
    7 Stable tag: 2.4.32
     7Stable tag: 2.4.33
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    120120
    121121== Changelog ==
     122= 2.4.33 =
     123* Fix Elementor Template View Permission
    122124= 2.4.32 =
    123125* Fix issues with Elementor latest version
Note: See TracChangeset for help on using the changeset viewer.