Changeset 3329469
- Timestamp:
- 07/17/2025 07:48:14 AM (9 months ago)
- Location:
- gmap-embed
- Files:
-
- 4 edited
-
tags/1.9.4/includes/Classes/Bootstrap.php (modified) (1 diff)
-
tags/1.9.4/includes/Traits/AdminInitActions.php (modified) (1 diff)
-
trunk/includes/Classes/Bootstrap.php (modified) (1 diff)
-
trunk/includes/traits/AdminInitActions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gmap-embed/tags/1.9.4/includes/Classes/Bootstrap.php
r3324623 r3329469 89 89 90 90 // Validate user capability before allowing admin actions 91 add_action('admin_init', function () {92 if (!current_user_can($this->capability)) {93 // Escape output for XSS protection94 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'gmap-embed'));95 }96 });91 // add_action('admin_init', function () { 92 // if (!current_user_can($this->capability)) { 93 // // Escape output for XSS protection 94 // wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'gmap-embed')); 95 // } 96 // }); 97 97 } 98 98 -
gmap-embed/tags/1.9.4/includes/Traits/AdminInitActions.php
r3324623 r3329469 18 18 { 19 19 // Security: Only allow admins to trigger migrations or admin actions 20 if (!current_user_can('manage_options')) {21 wp_die(esc_html__('You do not have permission to access this page.', 'gmap-embed'));22 }20 // if (!current_user_can('manage_options')) { 21 // wp_die(esc_html__('You do not have permission to access this page.', 'gmap-embed')); 22 // } 23 23 } 24 24 } -
gmap-embed/trunk/includes/Classes/Bootstrap.php
r3324623 r3329469 89 89 90 90 // Validate user capability before allowing admin actions 91 add_action('admin_init', function () {92 if (!current_user_can($this->capability)) {93 // Escape output for XSS protection94 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'gmap-embed'));95 }96 });91 // add_action('admin_init', function () { 92 // if (!current_user_can($this->capability)) { 93 // // Escape output for XSS protection 94 // wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'gmap-embed')); 95 // } 96 // }); 97 97 } 98 98 -
gmap-embed/trunk/includes/traits/AdminInitActions.php
r3324623 r3329469 18 18 { 19 19 // Security: Only allow admins to trigger migrations or admin actions 20 if (!current_user_can('manage_options')) {21 wp_die(esc_html__('You do not have permission to access this page.', 'gmap-embed'));22 }20 // if (!current_user_can('manage_options')) { 21 // wp_die(esc_html__('You do not have permission to access this page.', 'gmap-embed')); 22 // } 23 23 } 24 24 }
Note: See TracChangeset
for help on using the changeset viewer.