Advanced Access Manager - Version 5.0.8

Version Description

  • Fixed the bug to keep AAM compatible with older WP version
Download this release

Release Info

Developer vasyl_m
Plugin Icon 128x128 Advanced Access Manager
Version 5.0.8
Comparing to
See all releases

Code changes from version 5.0.7 to 5.0.8

Application/Backend/Authorization.php CHANGED
@@ -33,7 +33,7 @@ class AAM_Backend_Authorization {
33
  */
34
  protected function __construct() {
35
  //control admin area
36
- if (!wp_doing_ajax()) {
37
  add_action('admin_init', array($this, 'checkScreenAccess'));
38
  }
39
 
33
  */
34
  protected function __construct() {
35
  //control admin area
36
+ if (!defined( 'DOING_AJAX' ) || !DOING_AJAX) {
37
  add_action('admin_init', array($this, 'checkScreenAccess'));
38
  }
39
 
Application/Core/API.php CHANGED
@@ -215,7 +215,7 @@ final class AAM_Core_API {
215
  public static function capabilityExists($cap) {
216
  $caps = self::getAllCapabilities();
217
 
218
- return (is_scalar($cap) && array_key_exists($cap, $caps) ? true : false);
219
  }
220
 
221
  /**
215
  public static function capabilityExists($cap) {
216
  $caps = self::getAllCapabilities();
217
 
218
+ return (is_string($cap) && array_key_exists($cap, $caps) ? true : false);
219
  }
220
 
221
  /**
aam.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: All you need to manage access to your WordPress website
6
- Version: 5.0.7
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: https://vasyltech.com
9
 
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: All you need to manage access to your WordPress website
6
+ Version: 5.0.8
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: https://vasyltech.com
9
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: vasyltech
3
  Tags: access, role, user, capability, page access, post access, comments, security, login redirect, brute force attack, double authentication, membership, backend lockdown, wp-admin, 404, activity tracking
4
  Requires at least: 3.8
5
- Tested up to: 4.9.1
6
- Stable tag: 5.0.7
7
 
8
  The most powerful access management plugin for WordPress websites.
9
 
@@ -60,10 +60,12 @@ https://www.youtube.com/watch?v=yiOhjaacNJc
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 5.0.7 =
64
  * Fixed the bug that is caused by other plugins not using core filters correctly
65
  * Hiding Dashboard and Edit My Profile links if user does not have access to them
66
- *
67
 
68
  = 5.0.6 =
69
  * Fixed several minor PHP errors caused by legacy PHP versions and corrupted data
2
  Contributors: vasyltech
3
  Tags: access, role, user, capability, page access, post access, comments, security, login redirect, brute force attack, double authentication, membership, backend lockdown, wp-admin, 404, activity tracking
4
  Requires at least: 3.8
5
+ Tested up to: 4.9.4
6
+ Stable tag: 5.0.8
7
 
8
  The most powerful access management plugin for WordPress websites.
9
 
60
 
61
  == Changelog ==
62
 
63
+ = 5.0.8 =
64
+ * Fixed the bug to keep AAM compatible with older WP version
65
+
66
  = 5.0.7 =
67
  * Fixed the bug that is caused by other plugins not using core filters correctly
68
  * Hiding Dashboard and Edit My Profile links if user does not have access to them
 
69
 
70
  = 5.0.6 =
71
  * Fixed several minor PHP errors caused by legacy PHP versions and corrupted data