Version Description
- Minor bug fixes
Download this release
Release Info
Developer | vasyl_m |
Plugin | Advanced Access Manager |
Version | 4.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.3 to 4.3.1
- Application/Backend/Feature/Extension.php +1 -1
- Application/Core/Subject.php +1 -1
- Application/Extension/Server.php +25 -4
- aam.php +1 -1
- readme.txt +4 -1
Application/Backend/Feature/Extension.php
CHANGED
@@ -184,7 +184,7 @@ class AAM_Backend_Feature_Extension extends AAM_Backend_Feature_Abstract {
|
|
184 |
}
|
185 |
}
|
186 |
|
187 |
-
return ($count ? $count : '');
|
188 |
}
|
189 |
|
190 |
}
|
184 |
}
|
185 |
}
|
186 |
|
187 |
+
return ($count ? $count : 'NEW');
|
188 |
}
|
189 |
|
190 |
}
|
Application/Core/Subject.php
CHANGED
@@ -193,7 +193,7 @@ abstract class AAM_Core_Subject {
|
|
193 |
);
|
194 |
}
|
195 |
|
196 |
-
if ($object
|
197 |
$this->_objects[$objectType][$nid] = $object;
|
198 |
}
|
199 |
} else {
|
193 |
);
|
194 |
}
|
195 |
|
196 |
+
if (is_a($object, 'AAM_Core_Object')) {
|
197 |
$this->_objects[$objectType][$nid] = $object;
|
198 |
}
|
199 |
} else {
|
Application/Extension/Server.php
CHANGED
@@ -21,6 +21,11 @@ final class AAM_Extension_Server {
|
|
21 |
* Server endpoint
|
22 |
*/
|
23 |
const SERVER_URL = 'https://aamplugin.com/api/v1';
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
/**
|
26 |
* Fetch the extension list
|
@@ -48,7 +53,7 @@ final class AAM_Extension_Server {
|
|
48 |
}
|
49 |
}
|
50 |
|
51 |
-
$response = self::send(
|
52 |
$result = array();
|
53 |
|
54 |
if (!is_wp_error($response)) {
|
@@ -74,7 +79,7 @@ final class AAM_Extension_Server {
|
|
74 |
$domain = parse_url(site_url(), PHP_URL_HOST);
|
75 |
|
76 |
$response = self::send(
|
77 |
-
|
78 |
array('license' => $license, 'domain' => $domain)
|
79 |
);
|
80 |
|
@@ -104,8 +109,24 @@ final class AAM_Extension_Server {
|
|
104 |
//add AAM UID
|
105 |
$params['uid'] = AAM_Core_API::getOption('aam-uid', null, 'site');
|
106 |
|
107 |
-
$response =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
if (!is_wp_error($response)) {
|
110 |
if ($response['response']['code'] == 200) {
|
111 |
$response = json_decode($response['body']);
|
@@ -119,7 +140,7 @@ final class AAM_Extension_Server {
|
|
119 |
);
|
120 |
}
|
121 |
}
|
122 |
-
|
123 |
return $response;
|
124 |
}
|
125 |
|
21 |
* Server endpoint
|
22 |
*/
|
23 |
const SERVER_URL = 'https://aamplugin.com/api/v1';
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Fallback endpoint
|
27 |
+
*/
|
28 |
+
const FALLBACK_URL = 'http://rest.vasyltech.com/v1';
|
29 |
|
30 |
/**
|
31 |
* Fetch the extension list
|
53 |
}
|
54 |
}
|
55 |
|
56 |
+
$response = self::send('/check', $params);
|
57 |
$result = array();
|
58 |
|
59 |
if (!is_wp_error($response)) {
|
79 |
$domain = parse_url(site_url(), PHP_URL_HOST);
|
80 |
|
81 |
$response = self::send(
|
82 |
+
'/download',
|
83 |
array('license' => $license, 'domain' => $domain)
|
84 |
);
|
85 |
|
109 |
//add AAM UID
|
110 |
$params['uid'] = AAM_Core_API::getOption('aam-uid', null, 'site');
|
111 |
|
112 |
+
$response = self::parseResponse(
|
113 |
+
AAM_Core_API::cURL(self::SERVER_URL . $request, false, $params)
|
114 |
+
);
|
115 |
+
|
116 |
+
if (empty($response) || is_wp_error($response)) {
|
117 |
+
$response = self::parseResponse(
|
118 |
+
AAM_Core_API::cURL(self::FALLBACK_URL . $request, false, $params)
|
119 |
+
);
|
120 |
+
}
|
121 |
|
122 |
+
return $response;
|
123 |
+
}
|
124 |
+
|
125 |
+
/**
|
126 |
+
*
|
127 |
+
* @param type $response
|
128 |
+
*/
|
129 |
+
protected static function parseResponse($response) {
|
130 |
if (!is_wp_error($response)) {
|
131 |
if ($response['response']['code'] == 200) {
|
132 |
$response = json_decode($response['body']);
|
140 |
);
|
141 |
}
|
142 |
}
|
143 |
+
|
144 |
return $response;
|
145 |
}
|
146 |
|
aam.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
Plugin Name: Advanced Access Manager
|
5 |
Description: Manage website access for any user, role or visitors
|
6 |
-
Version: 4.3
|
7 |
Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
Author URI: https://www.vasyltech.com
|
9 |
|
3 |
/**
|
4 |
Plugin Name: Advanced Access Manager
|
5 |
Description: Manage website access for any user, role or visitors
|
6 |
+
Version: 4.3.1
|
7 |
Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
Author URI: https://www.vasyltech.com
|
9 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: vasyltech
|
|
3 |
Tags: access, role, user, capability, page access, post access, security, login redirect, brute force attack, double authentication, membership, backend lockdown, wp-admin
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.7.3
|
6 |
-
Stable tag: 4.3
|
7 |
|
8 |
Manage your website access and security for any user, role or visitors.
|
9 |
|
@@ -104,6 +104,9 @@ Check our [help page](https://aamplugin.com/help) to find out more about AAM.
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
|
|
|
|
|
|
107 |
= 4.3 =
|
108 |
* Fixed the bug with SSL when WordPress is not configured properly
|
109 |
* Added AAM User Activity extension
|
3 |
Tags: access, role, user, capability, page access, post access, security, login redirect, brute force attack, double authentication, membership, backend lockdown, wp-admin
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.7.3
|
6 |
+
Stable tag: 4.3.1
|
7 |
|
8 |
Manage your website access and security for any user, role or visitors.
|
9 |
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
+
= 4.3.1 =
|
108 |
+
* Minor bug fixes
|
109 |
+
|
110 |
= 4.3 =
|
111 |
* Fixed the bug with SSL when WordPress is not configured properly
|
112 |
* Added AAM User Activity extension
|