Advanced Access Manager - Version 5.9.7.3

Version Description

  • Fixed the PHP notice that is triggered when Multiple roles is enabled and no roles selected for any particular user
Download this release

Release Info

Developer vasyltech
Plugin Icon 128x128 Advanced Access Manager
Version 5.9.7.3
Comparing to
See all releases

Code changes from version 5.9.7.2 to 5.9.7.3

aam.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Advanced Access Manager
5
  * Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
6
- * Version: 5.9.7.2
7
  * Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  * Author URI: https://vasyltech.com
9
  * Text Domain: advanced-access-manager
3
  /**
4
  * Plugin Name: Advanced Access Manager
5
  * Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
6
+ * Version: 5.9.7.3
7
  * Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  * Author URI: https://vasyltech.com
9
  * Text Domain: advanced-access-manager
application/Backend/Manager.php CHANGED
@@ -410,7 +410,12 @@ class AAM_Backend_Manager {
410
 
411
  //save selected user roles
412
  if (AAM::api()->getConfig('core.settings.multiSubject', false)) {
413
- $roles = filter_input(INPUT_POST, 'aam_user_roles', FILTER_DEFAULT , FILTER_REQUIRE_ARRAY);
 
 
 
 
 
414
 
415
  // prepare the final list of roles that needs to be set
416
  $newRoles = array_intersect($roles, array_keys(get_editable_roles()));
410
 
411
  //save selected user roles
412
  if (AAM::api()->getConfig('core.settings.multiSubject', false)) {
413
+ $roles = filter_input(
414
+ INPUT_POST, 'aam_user_roles', FILTER_DEFAULT , FILTER_REQUIRE_ARRAY
415
+ );
416
+
417
+ // let's make sure that the list of roles is array
418
+ $roles = (is_array($roles) ? $roles : array());
419
 
420
  // prepare the final list of roles that needs to be set
421
  $newRoles = array_intersect($roles, array_keys(get_editable_roles()));
application/Backend/phtml/extensions.phtml CHANGED
@@ -3,7 +3,7 @@
3
  <div class="row">
4
  <div class="col-xs-12">
5
  <p class="aam-info">
6
- <?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('By purchasing any of the extensions below, you obtain the license that allows you to install and use our software for life and for one physical WordPress installation only. However you will be able to download new updates for one year from the time of purchase unless you purchased the [Extended version]. Exceptions are websites where URL is either [localhost] or starts with [dev.], [staging.], [test.] or [demo.] They are considered as development websites and you can use the purchased license unlimited number of times before it is activated on a production website. [Money back guaranteed] within 10 day from the time of purchase.', 'i', 'i', 'i', 'i', 'i', 'i', 'b'), '<a href="https://aamplugin.com/development-package" target="_blank">', '</a>'); ?><br/>
7
  </p>
8
  </div>
9
  </div>
@@ -68,7 +68,7 @@
68
  <a href="#" class="btn btn-sm btn-danger btn-block aam-deactivate-extension" data-product="<?php echo $product['id']; ?>"><i class="icon-attention-circled"></i> <?php echo __('Deactivate', AAM_KEY); ?></a><small><?php echo __('extension is active', AAM_KEY); ?></small>
69
  <?php } ?>
70
  <?php } elseif ($product['status'] == AAM_Extension_Repository::STATUS_UPDATE) { ?>
71
- <a href="#" class="btn btn-sm btn-warning btn-block aam-update-extension<?php echo (empty($product['license']) ? ' disabled' : ''); ?>" data-license="<?php echo (!empty($product['license']) ? $product['license'] : ''); ?>"><i class="icon-arrows-cw"></i> <?php echo __('Update', AAM_KEY); ?></a><?php echo (empty($product['license']) ? '<small>' . __('license is missing', AAM_KEY) . '</small>' : ''); ?>
72
  <?php } elseif ($product['status'] == AAM_Extension_Repository::STATUS_INACTIVE) { ?>
73
  <a href="#" class="btn btn-sm btn-success btn-block aam-activate-extension" data-product="<?php echo $product['id']; ?>"><i class="icon-check"></i> <?php echo __('Activate', AAM_KEY); ?></a><small><?php echo __('extension is inactive', AAM_KEY); ?></small>
74
  <?php } else { ?>
@@ -150,7 +150,7 @@
150
  </div>
151
  <div class="modal-body aam-info-modal">
152
  <p>
153
- <?php echo __('Insert license key that you recieved after the payment (find the email example below). It might take up to 2 hours to process the payment. Please remember that license key is limited only to one life domain.', AAM_KEY); ?>
154
  <br /> <br />
155
  <img src="https://aamplugin.com/media/img/email-confirmation.jpg" class="img-responsive" />
156
  </p>
3
  <div class="row">
4
  <div class="col-xs-12">
5
  <p class="aam-info">
6
+ <?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('By purchasing any of the extensions below, you obtain the license that allows you to install and use our software for live and for one physical WordPress installation only. However you will be able to download new updates for one year from the time of purchase unless you purchased the [Extended version]. Exceptions are websites where URL is either [localhost] or starts with [dev.], [staging.], [test.] or [demo.] They are considered as development websites and you can use the purchased license unlimited number of times before it is activated on a production website. [Money back guaranteed] within 10 day from the time of purchase.', 'i', 'i', 'i', 'i', 'i', 'i', 'b'), '<a href="https://aamplugin.com/development-package" target="_blank">', '</a>'); ?><br/>
7
  </p>
8
  </div>
9
  </div>
68
  <a href="#" class="btn btn-sm btn-danger btn-block aam-deactivate-extension" data-product="<?php echo $product['id']; ?>"><i class="icon-attention-circled"></i> <?php echo __('Deactivate', AAM_KEY); ?></a><small><?php echo __('extension is active', AAM_KEY); ?></small>
69
  <?php } ?>
70
  <?php } elseif ($product['status'] == AAM_Extension_Repository::STATUS_UPDATE) { ?>
71
+ <a href="#" class="btn btn-sm btn-warning btn-block aam-update-extension<?php echo (empty($product['license']) ? ' disabled' : ''); ?>" data-license="<?php echo (!empty($product['license']) ? $product['license'] : ''); ?>"><i class="icon-arrows-cw"></i> <?php echo __('Update', AAM_KEY); ?></a>
72
  <?php } elseif ($product['status'] == AAM_Extension_Repository::STATUS_INACTIVE) { ?>
73
  <a href="#" class="btn btn-sm btn-success btn-block aam-activate-extension" data-product="<?php echo $product['id']; ?>"><i class="icon-check"></i> <?php echo __('Activate', AAM_KEY); ?></a><small><?php echo __('extension is inactive', AAM_KEY); ?></small>
74
  <?php } else { ?>
150
  </div>
151
  <div class="modal-body aam-info-modal">
152
  <p>
153
+ <?php echo __('Insert license key that you recieved after the payment (find the email example below). It might take up to 2 hours to process the payment. Please remember that license key is limited only to one live domain.', AAM_KEY); ?>
154
  <br /> <br />
155
  <img src="https://aamplugin.com/media/img/email-confirmation.jpg" class="img-responsive" />
156
  </p>
lang/advanced-access-manager-en_US.po CHANGED
@@ -1327,7 +1327,7 @@ msgstr ""
1327
  #: application/Backend/phtml/extensions.phtml:6
1328
  msgid ""
1329
  "By purchasing any of the extensions below, you obtain the license that "
1330
- "allows you to install and use our software for life and for one physical "
1331
  "WordPress installation only. However you will be able to download new "
1332
  "updates for one year from the time of purchase unless you purchased the "
1333
  "[Extended version]. Exceptions are websites where URL is either [localhost] "
@@ -1490,7 +1490,7 @@ msgstr ""
1490
  msgid ""
1491
  "Insert license key that you recieved after the payment (find the email "
1492
  "example below). It might take up to 2 hours to process the payment. Please "
1493
- "remember that license key is limited only to one life domain."
1494
  msgstr ""
1495
 
1496
  #: application/Backend/phtml/index.phtml:14
1327
  #: application/Backend/phtml/extensions.phtml:6
1328
  msgid ""
1329
  "By purchasing any of the extensions below, you obtain the license that "
1330
+ "allows you to install and use our software for live and for one physical "
1331
  "WordPress installation only. However you will be able to download new "
1332
  "updates for one year from the time of purchase unless you purchased the "
1333
  "[Extended version]. Exceptions are websites where URL is either [localhost] "
1490
  msgid ""
1491
  "Insert license key that you recieved after the payment (find the email "
1492
  "example below). It might take up to 2 hours to process the payment. Please "
1493
+ "remember that license key is limited only to one live domain."
1494
  msgstr ""
1495
 
1496
  #: application/Backend/phtml/index.phtml:14
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: vasyltech
3
  Tags: access control, membership, backend menu, user role, restricted content, security, jwt
4
  Requires at least: 4.0
5
  Tested up to: 5.2.1
6
- Stable tag: 5.9.7.2
7
 
8
  All you need to manage access to you WordPress websites on frontend, backend and API levels for any role, user or visitors.
9
 
@@ -80,6 +80,9 @@ https://www.youtube.com/watch?v=mj5Xa_Wc16Y
80
 
81
  == Changelog ==
82
 
 
 
 
83
  = 5.9.7.2 =
84
  * Cover incompatibility with themes/plugins that do funky stuff with roles and capabilities
85
 
3
  Tags: access control, membership, backend menu, user role, restricted content, security, jwt
4
  Requires at least: 4.0
5
  Tested up to: 5.2.1
6
+ Stable tag: 5.9.7.3
7
 
8
  All you need to manage access to you WordPress websites on frontend, backend and API levels for any role, user or visitors.
9
 
80
 
81
  == Changelog ==
82
 
83
+ = 5.9.7.3 =
84
+ * Fixed the PHP notice that is triggered when Multiple roles is enabled and no roles selected for any particular user
85
+
86
  = 5.9.7.2 =
87
  * Cover incompatibility with themes/plugins that do funky stuff with roles and capabilities
88