Plugin Directory

Changeset 3279081


Ignore:
Timestamp:
04/22/2025 01:04:39 PM (12 months ago)
Author:
vasyltech
Message:

Official 6.9.51

Location:
advanced-access-manager
Files:
344 added
5 edited

Legend:

Unmodified
Added
Removed
  • advanced-access-manager/trunk/aam.php

    r3262471 r3279081  
    44 * Plugin Name: Advanced Access Manager
    55 * Description: Powerfully robust WordPress plugin designed to help you control every aspect of your website, your way.
    6  * Version: 6.9.49
     6 * Version: 6.9.51
    77 * Author: AAM <support@aamplugin.com>
    88 * Author URI: https://aamportal.com
     
    332332    define('AAM_MEDIA', plugins_url('/media', __FILE__));
    333333    define('AAM_KEY', 'advanced-access-manager');
    334     define('AAM_VERSION', '6.9.49');
     334    define('AAM_VERSION', '6.9.51');
    335335    define('AAM_BASEDIR', __DIR__);
    336336
  • advanced-access-manager/trunk/application/Restful/SecurityAuditService.php

    r3262471 r3279081  
    161161
    162162        // Step #2. Upload the report
    163         $result = wp_remote_post('https://api.aamportal.com/audit/summary', [
     163        $result = wp_remote_post('http://api.aamportal.com/audit/summary', [
    164164            'body'        => $payload,
    165165            'timeout'     => 30,
     
    297297
    298298        foreach($data as $check_id => $check_result) {
    299             $check = $checks[$check_id];
     299            $check    = $checks[$check_id];
     300            $executor = $check['executor'];
    300301
    301302            if (!empty($check_result['issues'])) {
    302303                foreach($check_result['issues'] as $failure) {
    303304                    fputcsv($report, [
    304                         $failure['reason'],
     305                        call_user_func("{$executor}::issue_to_message", $failure),
    305306                        $failure['type'],
    306307                        isset($check['category']) ? $check['category'] : $check_id
     
    330331
    331332        foreach($data as $check_id => $check_result) {
    332             $check = $checks[$check_id];
     333            $check    = $checks[$check_id];
     334            $executor = $check['executor'];
    333335
    334336            if (!empty($check_result['issues'])) {
    335337                foreach($check_result['issues'] as $failure) {
    336338                    array_push($report, [
    337                         'issue'    => $failure['reason'],
     339                        'issue'    => call_user_func("{$executor}::issue_to_message", $failure),
    338340                        'type'     => $failure['type'],
    339341                        'category' => isset($check['category']) ? $check['category'] : $check_id
  • advanced-access-manager/trunk/application/Service/Capability.php

    r3111380 r3279081  
    114114
    115115        // Initialize the list of capabilities with descriptions
    116         $this->_capabilities = [
    117             'switch_themes' => __('Allows a user to change the active theme of a website, altering its overall design and layout.', AAM_KEY),
    118             'edit_themes' => __('Enables a user to directly modify the code of theme files, allowing for customization and adjustments to the website\'s appearance and functionality.', AAM_KEY),
    119             'edit_theme_options' => __('Permits a user to access and modify theme settings through the WordPress Customizer, enabling personalized adjustments to the site\'s appearance and functionality without altering code.', AAM_KEY),
    120             'install_themes' => __('Allows a user to add new themes to a website from the WordPress Theme Directory or by uploading theme files directly.', AAM_KEY),
    121             'activate_plugins' => __('Enables a user to activate or deactivate plugins, thereby controlling the addition or removal of specific functionalities on the website.', AAM_KEY),
    122             'edit_plugins' => __('Allows a user to directly modify the code of installed plugin files, enabling custom changes and enhancements to the site\'s functionality.', AAM_KEY),
    123             'install_plugins' => __('Allows a user to add new plugins to a website, expanding its functionality by integrating additional features and tools.', AAM_KEY),
    124             'edit_users' => __('Allows a user to modify the profiles and settings of existing users, including their roles, personal information, and permissions.', AAM_KEY),
    125             'edit_files' => __('Allows a user to edit files in the theme or plugin editor', AAM_KEY),
    126             'manage_options' => __('Allows a user to manage all site options and settings', AAM_KEY),
    127             'moderate_comments' => __('Allows a user to moderate comments and manage their status', AAM_KEY),
    128             'manage_categories' => __('Allows a user to manage and edit categories for posts', AAM_KEY),
    129             'manage_links' => __('Allows a user to manage and edit links in the blogroll', AAM_KEY),
    130             'upload_files' => __('Allows a user to upload files to the media library', AAM_KEY),
    131             'import' => __('Allows a user to import content from external sources', AAM_KEY),
    132             'unfiltered_html' => __('Allows a user to post unfiltered HTML content', AAM_KEY),
    133             'edit_posts' => __('Allows a user to edit posts created by the user', AAM_KEY),
    134             'edit_others_posts' => __('Allows a user to edit posts created by other users', AAM_KEY),
    135             'edit_published_posts' => __('Allows a user to edit posts that are already published', AAM_KEY),
    136             'publish_posts' => __('Allows a user to publish new posts', AAM_KEY),
    137             'edit_pages' => __('Allows a user to edit pages on the site', AAM_KEY),
    138             'read' => __('Allows a user to read and view site content', AAM_KEY),
    139             'publish_pages' => __('Publish pages on the site', AAM_KEY),
    140             'edit_others_pages' => __('Edit pages created by other users', AAM_KEY),
    141             'edit_published_pages' => __('Edit pages that are already published', AAM_KEY),
    142             'delete_pages' => __('Delete pages', AAM_KEY),
    143             'delete_others_pages' => __('Delete pages created by other users', AAM_KEY),
    144             'delete_published_pages' => __('Delete pages that are already published', AAM_KEY),
    145             'delete_posts' => __('Delete posts', AAM_KEY),
    146             'delete_others_posts' => __('Delete posts created by other users', AAM_KEY),
    147             'delete_published_posts' => __('Delete posts that are already published', AAM_KEY),
    148             'delete_private_posts' => __('Delete private posts', AAM_KEY),
    149             'edit_private_posts' => __('Edit private posts', AAM_KEY),
    150             'read_private_posts' => __('Read private posts', AAM_KEY),
    151             'delete_private_pages' => __('Delete private pages', AAM_KEY),
    152             'edit_private_pages' => __('Edit private pages', AAM_KEY),
    153             'read_private_pages' => __('Read private pages', AAM_KEY),
    154             'delete_users' => __('Delete users', AAM_KEY),
    155             'create_users' => __('Create new users', AAM_KEY),
    156             'unfiltered_upload' => __('Upload files without filtering', AAM_KEY),
    157             'edit_dashboard' => __('Access and edit the dashboard', AAM_KEY),
    158             'customize' => __('Customize site appearance and options', AAM_KEY),
    159             'delete_site' => __('Delete the entire site', AAM_KEY),
    160             'update_plugins' => __('Update installed plugins', AAM_KEY),
    161             'delete_plugins' => __('Delete installed plugins', AAM_KEY),
    162             'update_themes' => __('Update installed themes', AAM_KEY),
    163             'update_core' => __('Update WordPress core', AAM_KEY),
    164             'list_users' => __('View list of all users', AAM_KEY),
    165             'remove_users' => __('Remove users from the site', AAM_KEY),
    166             'add_users' => __('Add new users to the site', AAM_KEY),
    167             'promote_users' => __('Promote users to higher roles', AAM_KEY),
    168             'delete_themes' => __('Delete installed themes', AAM_KEY),
    169             'export' => __('Export data from the site', AAM_KEY),
    170             'edit_comment' => __('Edit comments left on the site', AAM_KEY),
    171             'create_sites' => __('Create new sites in a multisite network', AAM_KEY),
    172             'delete_sites' => __('Delete sites in a multisite network', AAM_KEY),
    173             'manage_network' => __('Manage the entire network of sites', AAM_KEY),
    174             'manage_sites' => __('Manage individual sites in a multisite network', AAM_KEY),
    175             'manage_network_users' => __('Manage users across the entire network', AAM_KEY),
    176             'manage_network_themes' => __('Manage themes across the entire network', AAM_KEY),
    177             'manage_network_options' => __('Manage network-wide options and settings', AAM_KEY),
    178             'manage_network_plugins' => __('Manage plugins across the entire network', AAM_KEY),
    179             'upload_plugins' => __('Upload plugins to the site', AAM_KEY),
    180             'upload_themes' => __('Upload themes to the site', AAM_KEY),
    181             'upgrade_network' => __('Upgrade the entire network of sites', AAM_KEY),
    182             'setup_network' => __('Set up and configure a multisite network', AAM_KEY),
    183             'level_0' => __('Read only user level. Typically the Subscriber role.', AAM_KEY),
    184             'level_1' => __('Limited access level. Typically the Contributor role.', AAM_KEY),
    185             'level_2' => __('Author role access level', AAM_KEY),
    186             'level_3' => __('No specific meaning.', AAM_KEY),
    187             'level_4' => __('No specific meaning.', AAM_KEY),
    188             'level_5' => __('No specific meaning.', AAM_KEY),
    189             'level_6' => __('No specific meaning.', AAM_KEY),
    190             'level_7' => __('Editor access level.', AAM_KEY),
    191             'level_8' => __('No specific meaning.', AAM_KEY),
    192             'level_9' => __('No specific meaning.', AAM_KEY),
    193             'level_10' => __('The highest level capabilities. Typically the Administrator role.', AAM_KEY)
    194         ];
     116        add_action('init', function() {
     117            $this->_capabilities = [
     118                'switch_themes' => __('Allows a user to change the active theme of a website, altering its overall design and layout.', AAM_KEY),
     119                'edit_themes' => __('Enables a user to directly modify the code of theme files, allowing for customization and adjustments to the website\'s appearance and functionality.', AAM_KEY),
     120                'edit_theme_options' => __('Permits a user to access and modify theme settings through the WordPress Customizer, enabling personalized adjustments to the site\'s appearance and functionality without altering code.', AAM_KEY),
     121                'install_themes' => __('Allows a user to add new themes to a website from the WordPress Theme Directory or by uploading theme files directly.', AAM_KEY),
     122                'activate_plugins' => __('Enables a user to activate or deactivate plugins, thereby controlling the addition or removal of specific functionalities on the website.', AAM_KEY),
     123                'edit_plugins' => __('Allows a user to directly modify the code of installed plugin files, enabling custom changes and enhancements to the site\'s functionality.', AAM_KEY),
     124                'install_plugins' => __('Allows a user to add new plugins to a website, expanding its functionality by integrating additional features and tools.', AAM_KEY),
     125                'edit_users' => __('Allows a user to modify the profiles and settings of existing users, including their roles, personal information, and permissions.', AAM_KEY),
     126                'edit_files' => __('Allows a user to edit files in the theme or plugin editor', AAM_KEY),
     127                'manage_options' => __('Allows a user to manage all site options and settings', AAM_KEY),
     128                'moderate_comments' => __('Allows a user to moderate comments and manage their status', AAM_KEY),
     129                'manage_categories' => __('Allows a user to manage and edit categories for posts', AAM_KEY),
     130                'manage_links' => __('Allows a user to manage and edit links in the blogroll', AAM_KEY),
     131                'upload_files' => __('Allows a user to upload files to the media library', AAM_KEY),
     132                'import' => __('Allows a user to import content from external sources', AAM_KEY),
     133                'unfiltered_html' => __('Allows a user to post unfiltered HTML content', AAM_KEY),
     134                'edit_posts' => __('Allows a user to edit posts created by the user', AAM_KEY),
     135                'edit_others_posts' => __('Allows a user to edit posts created by other users', AAM_KEY),
     136                'edit_published_posts' => __('Allows a user to edit posts that are already published', AAM_KEY),
     137                'publish_posts' => __('Allows a user to publish new posts', AAM_KEY),
     138                'edit_pages' => __('Allows a user to edit pages on the site', AAM_KEY),
     139                'read' => __('Allows a user to read and view site content', AAM_KEY),
     140                'publish_pages' => __('Publish pages on the site', AAM_KEY),
     141                'edit_others_pages' => __('Edit pages created by other users', AAM_KEY),
     142                'edit_published_pages' => __('Edit pages that are already published', AAM_KEY),
     143                'delete_pages' => __('Delete pages', AAM_KEY),
     144                'delete_others_pages' => __('Delete pages created by other users', AAM_KEY),
     145                'delete_published_pages' => __('Delete pages that are already published', AAM_KEY),
     146                'delete_posts' => __('Delete posts', AAM_KEY),
     147                'delete_others_posts' => __('Delete posts created by other users', AAM_KEY),
     148                'delete_published_posts' => __('Delete posts that are already published', AAM_KEY),
     149                'delete_private_posts' => __('Delete private posts', AAM_KEY),
     150                'edit_private_posts' => __('Edit private posts', AAM_KEY),
     151                'read_private_posts' => __('Read private posts', AAM_KEY),
     152                'delete_private_pages' => __('Delete private pages', AAM_KEY),
     153                'edit_private_pages' => __('Edit private pages', AAM_KEY),
     154                'read_private_pages' => __('Read private pages', AAM_KEY),
     155                'delete_users' => __('Delete users', AAM_KEY),
     156                'create_users' => __('Create new users', AAM_KEY),
     157                'unfiltered_upload' => __('Upload files without filtering', AAM_KEY),
     158                'edit_dashboard' => __('Access and edit the dashboard', AAM_KEY),
     159                'customize' => __('Customize site appearance and options', AAM_KEY),
     160                'delete_site' => __('Delete the entire site', AAM_KEY),
     161                'update_plugins' => __('Update installed plugins', AAM_KEY),
     162                'delete_plugins' => __('Delete installed plugins', AAM_KEY),
     163                'update_themes' => __('Update installed themes', AAM_KEY),
     164                'update_core' => __('Update WordPress core', AAM_KEY),
     165                'list_users' => __('View list of all users', AAM_KEY),
     166                'remove_users' => __('Remove users from the site', AAM_KEY),
     167                'add_users' => __('Add new users to the site', AAM_KEY),
     168                'promote_users' => __('Promote users to higher roles', AAM_KEY),
     169                'delete_themes' => __('Delete installed themes', AAM_KEY),
     170                'export' => __('Export data from the site', AAM_KEY),
     171                'edit_comment' => __('Edit comments left on the site', AAM_KEY),
     172                'create_sites' => __('Create new sites in a multisite network', AAM_KEY),
     173                'delete_sites' => __('Delete sites in a multisite network', AAM_KEY),
     174                'manage_network' => __('Manage the entire network of sites', AAM_KEY),
     175                'manage_sites' => __('Manage individual sites in a multisite network', AAM_KEY),
     176                'manage_network_users' => __('Manage users across the entire network', AAM_KEY),
     177                'manage_network_themes' => __('Manage themes across the entire network', AAM_KEY),
     178                'manage_network_options' => __('Manage network-wide options and settings', AAM_KEY),
     179                'manage_network_plugins' => __('Manage plugins across the entire network', AAM_KEY),
     180                'upload_plugins' => __('Upload plugins to the site', AAM_KEY),
     181                'upload_themes' => __('Upload themes to the site', AAM_KEY),
     182                'upgrade_network' => __('Upgrade the entire network of sites', AAM_KEY),
     183                'setup_network' => __('Set up and configure a multisite network', AAM_KEY),
     184                'level_0' => __('Read only user level. Typically the Subscriber role.', AAM_KEY),
     185                'level_1' => __('Limited access level. Typically the Contributor role.', AAM_KEY),
     186                'level_2' => __('Author role access level', AAM_KEY),
     187                'level_3' => __('No specific meaning.', AAM_KEY),
     188                'level_4' => __('No specific meaning.', AAM_KEY),
     189                'level_5' => __('No specific meaning.', AAM_KEY),
     190                'level_6' => __('No specific meaning.', AAM_KEY),
     191                'level_7' => __('Editor access level.', AAM_KEY),
     192                'level_8' => __('No specific meaning.', AAM_KEY),
     193                'level_9' => __('No specific meaning.', AAM_KEY),
     194                'level_10' => __('The highest level capabilities. Typically the Administrator role.', AAM_KEY)
     195            ];
     196        });
    195197    }
    196198
  • advanced-access-manager/trunk/media/js/aam.js

    r3262471 r3279081  
    43384338                    // Adjust current list when switching between subjects or pages
    43394339                    AdjustList();
     4340                } else if ($('#aam-access-form-container').length) {
     4341                    InitializeAccessForm(false);
    43404342                }
    43414343
  • advanced-access-manager/trunk/readme.txt

    r3262471 r3279081  
    11=== Advanced Access Manager - Restricted Content, Users & Roles, Enhanced Security and More ===
    22Contributors: vasyltech
    3 Tags: access control, backend menu, user role, restricted content, security
     3Tags: security, access control, user roles, role management, backend security, restricted content, jwt, api security
    44Requires at least: 5.2.0
    55Requires PHP: 5.6.0
    6 Tested up to: 6.7.1
    7 Stable tag: 6.9.49
     6Tested up to: 6.8.0
     7Stable tag: 6.9.51
    88
    99Your WordPress security starts within — with AAM. Take control of your WordPress website and solve security gaps today.
     
    6060
    6161== Changelog ==
     62
     63= 6.9.51 =
     64* Fixed: PHP Notice: Function _load_textdomain_just_in_time [https://github.com/aamplugin/advanced-access-manager/issues/442](https://github.com/aamplugin/advanced-access-manager/issues/442)
     65* Fixed: The Access Manager Metabox does not initialize correctly [https://github.com/aamplugin/advanced-access-manager/issues/441](https://github.com/aamplugin/advanced-access-manager/issues/441)
     66* Fixed: Incorrectly invoked translation function [https://github.com/aamplugin/advanced-access-manager/issues/440](https://github.com/aamplugin/advanced-access-manager/issues/440)
     67* Fixed: Download audit report issue [https://github.com/aamplugin/advanced-access-manager/issues/438](https://github.com/aamplugin/advanced-access-manager/issues/438)
    6268
    6369= 6.9.49 =
Note: See TracChangeset for help on using the changeset viewer.