Version Description
- Fixed Bug: Invalid AAM notifications https://github.com/aamplugin/advanced-access-manager/issues/92
- Fixed Bug: HTTP redirect status code must be a redirection code, 3xx https://github.com/aamplugin/advanced-access-manager/issues/94
- Fixed Bug: PHP Deprecated: contextual_help is "deprecated" since version 3.3.0 https://github.com/aamplugin/advanced-access-manager/issues/93
Download this release
Release Info
Developer | vasyltech |
Plugin | Advanced Access Manager |
Version | 6.4.3 |
Comparing to | |
See all releases |
Code changes from version 6.4.2 to 6.4.3
- aam.php +2 -2
- application/Addon/Repository.php +9 -7
- application/Core/Redirect.php +8 -5
- application/Service/ExtendedCapabilities.php +9 -25
- readme.txt +7 -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.4.
|
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.4.
|
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.4.3
|
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.4.3');
|
268 |
define('AAM_BASEDIR', __DIR__);
|
269 |
|
270 |
//load vendor
|
application/Addon/Repository.php
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
/**
|
11 |
* Addon repository
|
12 |
*
|
|
|
13 |
* @since 6.4.2 Implemented https://github.com/aamplugin/advanced-access-manager/issues/88
|
14 |
* @since 6.4.1 Fixed https://github.com/aamplugin/advanced-access-manager/issues/81
|
15 |
* @since 6.2.0 Bug fixing that is related to unwanted PHP notices
|
@@ -18,7 +19,7 @@
|
|
18 |
* @since 6.0.0 Initial implementation of the class
|
19 |
*
|
20 |
* @package AAM
|
21 |
-
* @version 6.4.
|
22 |
*/
|
23 |
class AAM_Addon_Repository
|
24 |
{
|
@@ -142,7 +143,7 @@ class AAM_Addon_Repository
|
|
142 |
'Plus Package',
|
143 |
'plus-package',
|
144 |
__('Manage access to your WordPress website posts, pages, media, custom post types, categories, tags and custom taxonomies for any role, individual user, visitors or even define default access for everybody; and do this separately for frontend, backend or API levels.', AAM_KEY),
|
145 |
-
'5.3.
|
146 |
),
|
147 |
'aam-ip-check' => $this->buildAddonObject(
|
148 |
'IP Check',
|
@@ -170,7 +171,7 @@ class AAM_Addon_Repository
|
|
170 |
'Complete Package',
|
171 |
'complete-package',
|
172 |
__('Get the complete list of all premium AAM addons in one package and all future premium addons will be included for now additional cost.', AAM_KEY),
|
173 |
-
'5.2.
|
174 |
)
|
175 |
);
|
176 |
}
|
@@ -185,19 +186,20 @@ class AAM_Addon_Repository
|
|
185 |
*
|
186 |
* @return array
|
187 |
*
|
|
|
188 |
* @since 6.4.2 Added https://github.com/aamplugin/advanced-access-manager/issues/88
|
189 |
* @since 6.0.5 Added new `hasUpdate` flag
|
190 |
* @since 6.0.0 Initial implementation of the method
|
191 |
*
|
192 |
* @access protected
|
193 |
-
* @version 6.4.
|
194 |
*/
|
195 |
protected function buildAddonObject($title, $slug, $description, $version = null)
|
196 |
{
|
197 |
// Determining if there is newer version
|
198 |
-
$
|
199 |
|
200 |
-
if (version_compare($
|
201 |
$hasUpdate = true;
|
202 |
} else {
|
203 |
$hasUpdate = $this->hasPluginUpdate("aam-{$slug}/bootstrap.php");
|
@@ -205,7 +207,7 @@ class AAM_Addon_Repository
|
|
205 |
|
206 |
return array(
|
207 |
'title' => $title,
|
208 |
-
'version' => $
|
209 |
'isActive' => $this->isPluginActive("aam-{$slug}/bootstrap.php"),
|
210 |
'expires' => $this->getExpirationDate("aam-{$slug}"),
|
211 |
'hasUpdate' => $hasUpdate,
|
10 |
/**
|
11 |
* Addon repository
|
12 |
*
|
13 |
+
* @since 6.4.3 Fixed https://github.com/aamplugin/advanced-access-manager/issues/92
|
14 |
* @since 6.4.2 Implemented https://github.com/aamplugin/advanced-access-manager/issues/88
|
15 |
* @since 6.4.1 Fixed https://github.com/aamplugin/advanced-access-manager/issues/81
|
16 |
* @since 6.2.0 Bug fixing that is related to unwanted PHP notices
|
19 |
* @since 6.0.0 Initial implementation of the class
|
20 |
*
|
21 |
* @package AAM
|
22 |
+
* @version 6.4.3
|
23 |
*/
|
24 |
class AAM_Addon_Repository
|
25 |
{
|
143 |
'Plus Package',
|
144 |
'plus-package',
|
145 |
__('Manage access to your WordPress website posts, pages, media, custom post types, categories, tags and custom taxonomies for any role, individual user, visitors or even define default access for everybody; and do this separately for frontend, backend or API levels.', AAM_KEY),
|
146 |
+
'5.3.3'
|
147 |
),
|
148 |
'aam-ip-check' => $this->buildAddonObject(
|
149 |
'IP Check',
|
171 |
'Complete Package',
|
172 |
'complete-package',
|
173 |
__('Get the complete list of all premium AAM addons in one package and all future premium addons will be included for now additional cost.', AAM_KEY),
|
174 |
+
'5.2.3'
|
175 |
)
|
176 |
);
|
177 |
}
|
186 |
*
|
187 |
* @return array
|
188 |
*
|
189 |
+
* @since 6.4.3 Fixed https://github.com/aamplugin/advanced-access-manager/issues/92
|
190 |
* @since 6.4.2 Added https://github.com/aamplugin/advanced-access-manager/issues/88
|
191 |
* @since 6.0.5 Added new `hasUpdate` flag
|
192 |
* @since 6.0.0 Initial implementation of the method
|
193 |
*
|
194 |
* @access protected
|
195 |
+
* @version 6.4.3
|
196 |
*/
|
197 |
protected function buildAddonObject($title, $slug, $description, $version = null)
|
198 |
{
|
199 |
// Determining if there is newer version
|
200 |
+
$current = $this->getPluginVersion("aam-{$slug}/bootstrap.php");
|
201 |
|
202 |
+
if (!empty($current) && version_compare($current, $version) === -1) {
|
203 |
$hasUpdate = true;
|
204 |
} else {
|
205 |
$hasUpdate = $this->hasPluginUpdate("aam-{$slug}/bootstrap.php");
|
207 |
|
208 |
return array(
|
209 |
'title' => $title,
|
210 |
+
'version' => $current,
|
211 |
'isActive' => $this->isPluginActive("aam-{$slug}/bootstrap.php"),
|
212 |
'expires' => $this->getExpirationDate("aam-{$slug}"),
|
213 |
'hasUpdate' => $hasUpdate,
|
application/Core/Redirect.php
CHANGED
@@ -10,12 +10,13 @@
|
|
10 |
/**
|
11 |
* Core AAM redirect handler
|
12 |
*
|
|
|
13 |
* @since 6.0.5 Fixed bug where URL redirect was incorrectly validating destination
|
14 |
* URL
|
15 |
* @since 6.0.0 Initial implementation of the class
|
16 |
*
|
17 |
* @package AAM
|
18 |
-
* @version 6.
|
19 |
*/
|
20 |
class AAM_Core_Redirect
|
21 |
{
|
@@ -104,17 +105,18 @@ class AAM_Core_Redirect
|
|
104 |
*
|
105 |
* @return void
|
106 |
*
|
|
|
107 |
* @since 6.1.1 Defining default redirect code `307` if none provided
|
108 |
* @since 6.0.0 Initial implementation of the method
|
109 |
*
|
110 |
* @access public
|
111 |
-
* @version 6.
|
112 |
*/
|
113 |
public static function doPageRedirect($meta)
|
114 |
{
|
115 |
$current = AAM_Core_API::getCurrentPost();
|
116 |
$dest = isset($meta['page']) ? $meta['page'] : null;
|
117 |
-
$code =
|
118 |
|
119 |
if (!empty($dest) && (empty($current) || ($current->ID !== intval($dest)))) {
|
120 |
wp_safe_redirect(get_page_link($dest), $code);
|
@@ -128,17 +130,18 @@ class AAM_Core_Redirect
|
|
128 |
*
|
129 |
* @return void
|
130 |
*
|
|
|
131 |
* @since 6.0.5 Fixed bug where destination URL was not properly checked against
|
132 |
* current page URI
|
133 |
* @since 6.0.0 Initial implementation of the method
|
134 |
*
|
135 |
* @access public
|
136 |
-
* @version 6.
|
137 |
*/
|
138 |
public static function doUrlRedirect($meta)
|
139 |
{
|
140 |
$dest = isset($meta['url']) ? $meta['url'] : null;
|
141 |
-
$code =
|
142 |
|
143 |
if ($dest !== AAM_Core_Request::server('REQUEST_URI')) {
|
144 |
wp_safe_redirect($dest, $code);
|
10 |
/**
|
11 |
* Core AAM redirect handler
|
12 |
*
|
13 |
+
* @since 6.4.3 Fixed https://github.com/aamplugin/advanced-access-manager/issues/94
|
14 |
* @since 6.0.5 Fixed bug where URL redirect was incorrectly validating destination
|
15 |
* URL
|
16 |
* @since 6.0.0 Initial implementation of the class
|
17 |
*
|
18 |
* @package AAM
|
19 |
+
* @version 6.4.3
|
20 |
*/
|
21 |
class AAM_Core_Redirect
|
22 |
{
|
105 |
*
|
106 |
* @return void
|
107 |
*
|
108 |
+
* @since 6.4.3 Fixed https://github.com/aamplugin/advanced-access-manager/issues/94
|
109 |
* @since 6.1.1 Defining default redirect code `307` if none provided
|
110 |
* @since 6.0.0 Initial implementation of the method
|
111 |
*
|
112 |
* @access public
|
113 |
+
* @version 6.4.3
|
114 |
*/
|
115 |
public static function doPageRedirect($meta)
|
116 |
{
|
117 |
$current = AAM_Core_API::getCurrentPost();
|
118 |
$dest = isset($meta['page']) ? $meta['page'] : null;
|
119 |
+
$code = !empty($meta['code']) ? $meta['code'] : 307;
|
120 |
|
121 |
if (!empty($dest) && (empty($current) || ($current->ID !== intval($dest)))) {
|
122 |
wp_safe_redirect(get_page_link($dest), $code);
|
130 |
*
|
131 |
* @return void
|
132 |
*
|
133 |
+
* @since 6.4.3 Fixed https://github.com/aamplugin/advanced-access-manager/issues/94
|
134 |
* @since 6.0.5 Fixed bug where destination URL was not properly checked against
|
135 |
* current page URI
|
136 |
* @since 6.0.0 Initial implementation of the method
|
137 |
*
|
138 |
* @access public
|
139 |
+
* @version 6.4.3
|
140 |
*/
|
141 |
public static function doUrlRedirect($meta)
|
142 |
{
|
143 |
$dest = isset($meta['url']) ? $meta['url'] : null;
|
144 |
+
$code = !empty($meta['code']) ? $meta['code'] : 307;
|
145 |
|
146 |
if ($dest !== AAM_Core_Request::server('REQUEST_URI')) {
|
147 |
wp_safe_redirect($dest, $code);
|
application/Service/ExtendedCapabilities.php
CHANGED
@@ -12,12 +12,13 @@
|
|
12 |
*
|
13 |
* Add custom capabilities support that enhance AAM functionality
|
14 |
*
|
|
|
15 |
* @since 6.1.0 Fixed the bug where aam_show_toolbar was not taken in consideration
|
16 |
* due to incorrect placement
|
17 |
* @since 6.0.0 Initial implementation of the class
|
18 |
*
|
19 |
* @package AAM
|
20 |
-
* @version 6.
|
21 |
*/
|
22 |
class AAM_Service_ExtendedCapabilities
|
23 |
{
|
@@ -67,12 +68,13 @@ class AAM_Service_ExtendedCapabilities
|
|
67 |
*
|
68 |
* @return void
|
69 |
*
|
|
|
70 |
* @since 6.1.0 Fixed the bug where aam_show_toolbar was not taken in
|
71 |
* consideration due to incorrect placement
|
72 |
* @since 6.0.0 Initial implementation of the method
|
73 |
*
|
74 |
* @access public
|
75 |
-
* @version 6.
|
76 |
*/
|
77 |
protected function initializeHooks()
|
78 |
{
|
@@ -84,7 +86,11 @@ class AAM_Service_ExtendedCapabilities
|
|
84 |
|
85 |
// Screen options & contextual help hooks
|
86 |
add_filter('screen_options_show_screen', array($this, 'screenOptions'));
|
87 |
-
|
|
|
|
|
|
|
|
|
88 |
|
89 |
// Permalink manager
|
90 |
add_filter('get_sample_permalink_html', function ($html) {
|
@@ -158,28 +164,6 @@ class AAM_Service_ExtendedCapabilities
|
|
158 |
return $flag;
|
159 |
}
|
160 |
|
161 |
-
/**
|
162 |
-
* Check if user has access to the Help options
|
163 |
-
*
|
164 |
-
* @param array $help
|
165 |
-
* @param mixed $id
|
166 |
-
* @param object $screen
|
167 |
-
*
|
168 |
-
* @return array
|
169 |
-
*
|
170 |
-
* @access public
|
171 |
-
* @version 6.0.0
|
172 |
-
*/
|
173 |
-
public function helpOptions($help, $id, $screen)
|
174 |
-
{
|
175 |
-
if (!AAM_Core_API::isAAMCapabilityAllowed('aam_show_help_tabs')) {
|
176 |
-
$screen->remove_help_tabs();
|
177 |
-
$help = array();
|
178 |
-
}
|
179 |
-
|
180 |
-
return $help;
|
181 |
-
}
|
182 |
-
|
183 |
/**
|
184 |
* Check if user can change his/her own password
|
185 |
*
|
12 |
*
|
13 |
* Add custom capabilities support that enhance AAM functionality
|
14 |
*
|
15 |
+
* @since 6.4.3 Fixed https://github.com/aamplugin/advanced-access-manager/issues/93
|
16 |
* @since 6.1.0 Fixed the bug where aam_show_toolbar was not taken in consideration
|
17 |
* due to incorrect placement
|
18 |
* @since 6.0.0 Initial implementation of the class
|
19 |
*
|
20 |
* @package AAM
|
21 |
+
* @version 6.4.3
|
22 |
*/
|
23 |
class AAM_Service_ExtendedCapabilities
|
24 |
{
|
68 |
*
|
69 |
* @return void
|
70 |
*
|
71 |
+
* @since 6.4.2 Fixed https://github.com/aamplugin/advanced-access-manager/issues/93
|
72 |
* @since 6.1.0 Fixed the bug where aam_show_toolbar was not taken in
|
73 |
* consideration due to incorrect placement
|
74 |
* @since 6.0.0 Initial implementation of the method
|
75 |
*
|
76 |
* @access public
|
77 |
+
* @version 6.4.3
|
78 |
*/
|
79 |
protected function initializeHooks()
|
80 |
{
|
86 |
|
87 |
// Screen options & contextual help hooks
|
88 |
add_filter('screen_options_show_screen', array($this, 'screenOptions'));
|
89 |
+
add_action('in_admin_header', function() {
|
90 |
+
if (!AAM_Core_API::isAAMCapabilityAllowed('aam_show_help_tabs')) {
|
91 |
+
get_current_screen()->remove_help_tabs();
|
92 |
+
}
|
93 |
+
});
|
94 |
|
95 |
// Permalink manager
|
96 |
add_filter('get_sample_permalink_html', function ($html) {
|
164 |
return $flag;
|
165 |
}
|
166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
/**
|
168 |
* Check if user can change his/her own password
|
169 |
*
|
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.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,6 +91,11 @@ We take security and privacy very seriously, that is why there are several non-n
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
|
|
94 |
= 6.4.2 =
|
95 |
* Fixed Bug: Plus Package add-on: Call to undefined function wp_parse_list() [https://github.com/aamplugin/advanced-access-manager/issues/87](https://github.com/aamplugin/advanced-access-manager/issues/87)
|
96 |
* Added New: Backward compatibility, return v1/authenticate endpoint [https://github.com/aamplugin/advanced-access-manager/issues/91](https://github.com/aamplugin/advanced-access-manager/issues/91)
|
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.4.0
|
7 |
+
Stable tag: 6.4.3
|
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.4.3 =
|
95 |
+
* Fixed Bug: Invalid AAM notifications [https://github.com/aamplugin/advanced-access-manager/issues/92](https://github.com/aamplugin/advanced-access-manager/issues/92)
|
96 |
+
* Fixed Bug: HTTP redirect status code must be a redirection code, 3xx [https://github.com/aamplugin/advanced-access-manager/issues/94](https://github.com/aamplugin/advanced-access-manager/issues/94)
|
97 |
+
* Fixed Bug: PHP Deprecated: contextual_help is "deprecated" since version 3.3.0 [https://github.com/aamplugin/advanced-access-manager/issues/93](https://github.com/aamplugin/advanced-access-manager/issues/93)
|
98 |
+
|
99 |
= 6.4.2 =
|
100 |
* Fixed Bug: Plus Package add-on: Call to undefined function wp_parse_list() [https://github.com/aamplugin/advanced-access-manager/issues/87](https://github.com/aamplugin/advanced-access-manager/issues/87)
|
101 |
* Added New: Backward compatibility, return v1/authenticate endpoint [https://github.com/aamplugin/advanced-access-manager/issues/91](https://github.com/aamplugin/advanced-access-manager/issues/91)
|