Plugin Directory

Changeset 3329469


Ignore:
Timestamp:
07/17/2025 07:48:14 AM (9 months ago)
Author:
milonfci
Message:

Minor fixing related to markers rendering

Location:
gmap-embed
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gmap-embed/tags/1.9.4/includes/Classes/Bootstrap.php

    r3324623 r3329469  
    8989
    9090        // 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 protection
    94                 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        // });
    9797    }
    9898
  • gmap-embed/tags/1.9.4/includes/Traits/AdminInitActions.php

    r3324623 r3329469  
    1818    {
    1919        // 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        // }
    2323    }
    2424}
  • gmap-embed/trunk/includes/Classes/Bootstrap.php

    r3324623 r3329469  
    8989
    9090        // 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 protection
    94                 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        // });
    9797    }
    9898
  • gmap-embed/trunk/includes/traits/AdminInitActions.php

    r3324623 r3329469  
    1818    {
    1919        // 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        // }
    2323    }
    2424}
Note: See TracChangeset for help on using the changeset viewer.