Version Description
- Fixed Bug: DataTables warning: table id=post-ipcheck-list - Cannot reinitialise DataTable https://github.com/aamplugin/advanced-access-manager/issues/149
- Changed: User Level Filter Service: Performance Request by @dannysummerlinjstartorg https://github.com/aamplugin/advanced-access-manager/issues/142
Download this release
Release Info
Developer | vasyltech |
Plugin | Advanced Access Manager |
Version | 6.6.4 |
Comparing to | |
See all releases |
Code changes from version 6.6.3 to 6.6.4
- aam.php +2 -2
- application/Core/API.php +9 -4
- media/js/aam.js +4 -9
- readme.txt +5 -1
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: 6.6.
|
7 |
* Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
* Author URI: https://vasyltech.com
|
9 |
* Text Domain: advanced-access-manager
|
@@ -264,7 +264,7 @@ if (defined('ABSPATH')) {
|
|
264 |
//define few common constants
|
265 |
define('AAM_MEDIA', plugins_url('/media', __FILE__));
|
266 |
define('AAM_KEY', 'advanced-access-manager');
|
267 |
-
define('AAM_VERSION', '6.6.
|
268 |
define('AAM_BASEDIR', __DIR__);
|
269 |
|
270 |
//load vendor
|
3 |
/**
|
4 |
* Plugin Name: Advanced Access Manager
|
5 |
* Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
|
6 |
+
* Version: 6.6.4
|
7 |
* Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
* Author URI: https://vasyltech.com
|
9 |
* Text Domain: advanced-access-manager
|
264 |
//define few common constants
|
265 |
define('AAM_MEDIA', plugins_url('/media', __FILE__));
|
266 |
define('AAM_KEY', 'advanced-access-manager');
|
267 |
+
define('AAM_VERSION', '6.6.4');
|
268 |
define('AAM_BASEDIR', __DIR__);
|
269 |
|
270 |
//load vendor
|
application/Core/API.php
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
/**
|
11 |
* AAM core API
|
12 |
*
|
|
|
13 |
* @since 6.3.1 Fixed bug with setting clearing
|
14 |
* @since 6.3.0 Optimized for Multisite setup
|
15 |
* @since 6.2.2 Minor refactoring to the clearSettings method
|
@@ -18,7 +19,7 @@
|
|
18 |
* @since 6.0.0 Initial implementation of the class
|
19 |
*
|
20 |
* @package AAM
|
21 |
-
* @version 6.
|
22 |
*/
|
23 |
final class AAM_Core_API
|
24 |
{
|
@@ -164,8 +165,11 @@ final class AAM_Core_API
|
|
164 |
*
|
165 |
* @return int
|
166 |
*
|
|
|
|
|
|
|
167 |
* @access public
|
168 |
-
* @version 6.
|
169 |
*/
|
170 |
public static function maxLevel($caps, $default = 0)
|
171 |
{
|
@@ -173,8 +177,9 @@ final class AAM_Core_API
|
|
173 |
|
174 |
if (is_array($caps)) { // WP Error Fix bug report
|
175 |
foreach ($caps as $cap => $granted) {
|
176 |
-
if (!empty($granted) &&
|
177 |
-
$
|
|
|
178 |
}
|
179 |
}
|
180 |
}
|
10 |
/**
|
11 |
* AAM core API
|
12 |
*
|
13 |
+
* @since 6.6.4 https://github.com/aamplugin/advanced-access-manager/issues/142
|
14 |
* @since 6.3.1 Fixed bug with setting clearing
|
15 |
* @since 6.3.0 Optimized for Multisite setup
|
16 |
* @since 6.2.2 Minor refactoring to the clearSettings method
|
19 |
* @since 6.0.0 Initial implementation of the class
|
20 |
*
|
21 |
* @package AAM
|
22 |
+
* @version 6.6.4
|
23 |
*/
|
24 |
final class AAM_Core_API
|
25 |
{
|
165 |
*
|
166 |
* @return int
|
167 |
*
|
168 |
+
* @since 6.6.4 https://github.com/aamplugin/advanced-access-manager/issues/142
|
169 |
+
* @since 6.0.0 Initial implementation of the method
|
170 |
+
*
|
171 |
* @access public
|
172 |
+
* @version 6.6.4
|
173 |
*/
|
174 |
public static function maxLevel($caps, $default = 0)
|
175 |
{
|
177 |
|
178 |
if (is_array($caps)) { // WP Error Fix bug report
|
179 |
foreach ($caps as $cap => $granted) {
|
180 |
+
if (!empty($granted) && (strpos($cap, 'level_') === 0)) {
|
181 |
+
$level = intval(substr($cap, 6));
|
182 |
+
$max = ($max < $level ? $level : $max);
|
183 |
}
|
184 |
}
|
185 |
}
|
media/js/aam.js
CHANGED
@@ -2831,6 +2831,7 @@
|
|
2831 |
$('#post-redirect-code-value-container').show();
|
2832 |
});
|
2833 |
});
|
|
|
2834 |
$('#save-redirect-btn').bind('click', function() {
|
2835 |
$(this).text(getAAM().__('Saving...'));
|
2836 |
const type = $('.post-redirect-type:checked').val();
|
@@ -3200,19 +3201,13 @@
|
|
3200 |
}
|
3201 |
|
3202 |
if ($('#aam-access-form-container').is(':empty') === false) {
|
3203 |
-
|
3204 |
-
$('#content-object-type').val(),
|
|
|
3205 |
);
|
3206 |
}
|
3207 |
}
|
3208 |
|
3209 |
-
if (getAAM().isUI('post')) {
|
3210 |
-
loadAccessForm(
|
3211 |
-
$('#content-object-type').val(),
|
3212 |
-
$('#content-object-id').val()
|
3213 |
-
);
|
3214 |
-
}
|
3215 |
-
|
3216 |
getAAM().addHook('init', initialize);
|
3217 |
|
3218 |
})(jQuery);
|
2831 |
$('#post-redirect-code-value-container').show();
|
2832 |
});
|
2833 |
});
|
2834 |
+
|
2835 |
$('#save-redirect-btn').bind('click', function() {
|
2836 |
$(this).text(getAAM().__('Saving...'));
|
2837 |
const type = $('.post-redirect-type:checked').val();
|
3201 |
}
|
3202 |
|
3203 |
if ($('#aam-access-form-container').is(':empty') === false) {
|
3204 |
+
loadAccessForm(
|
3205 |
+
$('#content-object-type').val(),
|
3206 |
+
$('#content-object-id').val()
|
3207 |
);
|
3208 |
}
|
3209 |
}
|
3210 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3211 |
getAAM().addHook('init', initialize);
|
3212 |
|
3213 |
})(jQuery);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: access control, membership, backend menu, user role, restricted content, s
|
|
4 |
Requires at least: 4.7.0
|
5 |
Requires PHP: 5.6.0
|
6 |
Tested up to: 5.5.1
|
7 |
-
Stable tag: 6.6.
|
8 |
|
9 |
All you need to manage access to WordPress websites on the frontend, backend and API levels for any role, user or visitors.
|
10 |
|
@@ -91,6 +91,10 @@ We take security and privacy very seriously, that is why there are several non-n
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
94 |
= 6.6.3 =
|
95 |
* Fixed Bug: Initial access settings for post are not loaded [https://github.com/aamplugin/advanced-access-manager/issues/143](https://github.com/aamplugin/advanced-access-manager/issues/143)
|
96 |
|
4 |
Requires at least: 4.7.0
|
5 |
Requires PHP: 5.6.0
|
6 |
Tested up to: 5.5.1
|
7 |
+
Stable tag: 6.6.4
|
8 |
|
9 |
All you need to manage access to WordPress websites on the frontend, backend and API levels for any role, user or visitors.
|
10 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 6.6.4 =
|
95 |
+
* Fixed Bug: DataTables warning: table id=post-ipcheck-list - Cannot reinitialise DataTable [https://github.com/aamplugin/advanced-access-manager/issues/149](https://github.com/aamplugin/advanced-access-manager/issues/149)
|
96 |
+
* Changed: User Level Filter Service: Performance Request by @dannysummerlinjstartorg [https://github.com/aamplugin/advanced-access-manager/issues/142](https://github.com/aamplugin/advanced-access-manager/issues/142)
|
97 |
+
|
98 |
= 6.6.3 =
|
99 |
* Fixed Bug: Initial access settings for post are not loaded [https://github.com/aamplugin/advanced-access-manager/issues/143](https://github.com/aamplugin/advanced-access-manager/issues/143)
|
100 |
|