Changeset 3221445
- Timestamp:
- 01/13/2025 09:26:23 AM (15 months ago)
- Location:
- piotnet-addons-for-elementor/trunk
- Files:
-
- 2 edited
-
piotnet-addons-for-elementor.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
piotnet-addons-for-elementor/trunk/piotnet-addons-for-elementor.php
r3217875 r3221445 4 4 * Description: Piotnet Addons For Elementor (PAFE) adds many new features for Elementor 5 5 * Plugin URI: https://pafe.piotnet.com/ 6 * Version: 2.4.3 26 * Version: 2.4.33 7 7 * Author: Piotnet 8 8 * Author URI: https://piotnet.com/ … … 14 14 if ( ! defined( 'ABSPATH' ) ) { exit; } 15 15 16 define( 'PAFE_VERSION', '2.4.3 2' );16 define( 'PAFE_VERSION', '2.4.33' ); 17 17 18 18 define( 'PAFE_DIR', plugin_dir_path(__FILE__)); … … 174 174 } 175 175 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>'); 179 178 } 180 179 -
piotnet-addons-for-elementor/trunk/readme.txt
r3217875 r3221445 5 5 Tested up to: 6.7.1 6 6 Requires PHP: 5.4 7 Stable tag: 2.4.3 27 Stable tag: 2.4.33 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 120 120 121 121 == Changelog == 122 = 2.4.33 = 123 * Fix Elementor Template View Permission 122 124 = 2.4.32 = 123 125 * Fix issues with Elementor latest version
Note: See TracChangeset
for help on using the changeset viewer.