Version Description
- Changed: A notice "Object of class WP_User" reported by @it4joy https://github.com/aamplugin/advanced-access-manager/issues/184
Download this release
Release Info
Developer | vasyltech |
Plugin | Advanced Access Manager |
Version | 6.7.7 |
Comparing to | |
See all releases |
Code changes from version 6.7.6 to 6.7.7
- aam.php +2 -2
- application/Service/Content.php +5 -3
- readme.txt +5 -2
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.7.
|
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.7.
|
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.7.7
|
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.7.7');
|
268 |
define('AAM_BASEDIR', __DIR__);
|
269 |
|
270 |
//load vendor
|
application/Service/Content.php
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
/**
|
11 |
* Posts & Terms service
|
12 |
*
|
|
|
13 |
* @since 6.6.1 https://github.com/aamplugin/advanced-access-manager/issues/137
|
14 |
* @since 6.5.1 https://github.com/aamplugin/advanced-access-manager/issues/115
|
15 |
* @since 6.4.0 Enhanced https://github.com/aamplugin/advanced-access-manager/issues/71
|
@@ -22,7 +23,7 @@
|
|
22 |
* @since 6.0.0 Initial implementation of the class
|
23 |
*
|
24 |
* @package AAM
|
25 |
-
* @version 6.
|
26 |
*/
|
27 |
class AAM_Service_Content
|
28 |
{
|
@@ -946,6 +947,7 @@ class AAM_Service_Content
|
|
946 |
*
|
947 |
* @return array
|
948 |
*
|
|
|
949 |
* @since 6.1.0 Added internal cache to optimize performance for posts that no
|
950 |
* longer exist but still referenced one way or another
|
951 |
* @since 6.0.2 Completely rewrote this method to fixed loop caused by mapped
|
@@ -953,7 +955,7 @@ class AAM_Service_Content
|
|
953 |
* @since 6.0.0 Initial implementation of the method
|
954 |
*
|
955 |
* @access public
|
956 |
-
* @version 6.
|
957 |
*/
|
958 |
public function filterMetaMaps($caps, $cap, $user_id, $args)
|
959 |
{
|
@@ -967,7 +969,7 @@ class AAM_Service_Content
|
|
967 |
if (in_array($cap, $this->postTypeCaps, true)) {
|
968 |
// Critical part of the implementation. We do not know ahead what
|
969 |
// capability is responsible for what action when it comes to post types.
|
970 |
-
if (isset($args[0])) {
|
971 |
$objectId = intval($args[0]);
|
972 |
} elseif (is_a($post, 'WP_Post')) {
|
973 |
$objectId = $post->ID;
|
10 |
/**
|
11 |
* Posts & Terms service
|
12 |
*
|
13 |
+
* @since 6.7.7 https://github.com/aamplugin/advanced-access-manager/issues/184
|
14 |
* @since 6.6.1 https://github.com/aamplugin/advanced-access-manager/issues/137
|
15 |
* @since 6.5.1 https://github.com/aamplugin/advanced-access-manager/issues/115
|
16 |
* @since 6.4.0 Enhanced https://github.com/aamplugin/advanced-access-manager/issues/71
|
23 |
* @since 6.0.0 Initial implementation of the class
|
24 |
*
|
25 |
* @package AAM
|
26 |
+
* @version 6.7.7
|
27 |
*/
|
28 |
class AAM_Service_Content
|
29 |
{
|
947 |
*
|
948 |
* @return array
|
949 |
*
|
950 |
+
* @since 6.7.7 https://github.com/aamplugin/advanced-access-manager/issues/184
|
951 |
* @since 6.1.0 Added internal cache to optimize performance for posts that no
|
952 |
* longer exist but still referenced one way or another
|
953 |
* @since 6.0.2 Completely rewrote this method to fixed loop caused by mapped
|
955 |
* @since 6.0.0 Initial implementation of the method
|
956 |
*
|
957 |
* @access public
|
958 |
+
* @version 6.7.7
|
959 |
*/
|
960 |
public function filterMetaMaps($caps, $cap, $user_id, $args)
|
961 |
{
|
969 |
if (in_array($cap, $this->postTypeCaps, true)) {
|
970 |
// Critical part of the implementation. We do not know ahead what
|
971 |
// capability is responsible for what action when it comes to post types.
|
972 |
+
if (isset($args[0]) && is_scalar($args[0])) {
|
973 |
$objectId = intval($args[0]);
|
974 |
} elseif (is_a($post, 'WP_Post')) {
|
975 |
$objectId = $post->ID;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: vasyltech
|
|
3 |
Tags: access control, membership, backend menu, user role, restricted content, security, jwt
|
4 |
Requires at least: 4.7.0
|
5 |
Requires PHP: 5.6.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 6.7.
|
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,9 @@ We take security and privacy very seriously, that is why there are several non-n
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
94 |
= 6.7.6 =
|
95 |
* Fixed Bug: Incorrectly handled "Add User" for with multisite setup by @terrance-orletsky-d7 [https://github.com/aamplugin/advanced-access-manager/issues/179](https://github.com/aamplugin/advanced-access-manager/issues/179)
|
96 |
* Fixed Bug: WP Notice in logs for fread by @terrance-orletsky-d7 [https://github.com/aamplugin/advanced-access-manager/issues/177](https://github.com/aamplugin/advanced-access-manager/issues/177)
|
3 |
Tags: access control, membership, backend menu, user role, restricted content, security, jwt
|
4 |
Requires at least: 4.7.0
|
5 |
Requires PHP: 5.6.0
|
6 |
+
Tested up to: 5.8.0
|
7 |
+
Stable tag: 6.7.7
|
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.7.7 =
|
95 |
+
* Changed: A notice "Object of class WP_User…" reported by @it4joy [https://github.com/aamplugin/advanced-access-manager/issues/184](https://github.com/aamplugin/advanced-access-manager/issues/184)
|
96 |
+
|
97 |
= 6.7.6 =
|
98 |
* Fixed Bug: Incorrectly handled "Add User" for with multisite setup by @terrance-orletsky-d7 [https://github.com/aamplugin/advanced-access-manager/issues/179](https://github.com/aamplugin/advanced-access-manager/issues/179)
|
99 |
* Fixed Bug: WP Notice in logs for fread by @terrance-orletsky-d7 [https://github.com/aamplugin/advanced-access-manager/issues/177](https://github.com/aamplugin/advanced-access-manager/issues/177)
|