Version Description
- One more minor issue
Download this release
Release Info
Developer | vasyl_m |
Plugin | Advanced Access Manager |
Version | 3.1.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.1.3 to 3.1.3.1
- Application/Backend/Post.php +1 -1
- Application/Core/Subject.php +7 -5
- aam.php +1 -1
- readme.txt +4 -1
Application/Backend/Post.php
CHANGED
@@ -232,7 +232,7 @@ class AAM_Backend_Post {
|
|
232 |
*/
|
233 |
public function getAccess() {
|
234 |
$type = trim(AAM_Core_Request::post('type'));
|
235 |
-
$id
|
236 |
|
237 |
$object = AAM_Backend_View::getSubject()->getObject($type, $id);
|
238 |
|
232 |
*/
|
233 |
public function getAccess() {
|
234 |
$type = trim(AAM_Core_Request::post('type'));
|
235 |
+
$id = AAM_Core_Request::post('id');
|
236 |
|
237 |
$object = AAM_Backend_View::getSubject()->getObject($type, $id);
|
238 |
|
Application/Core/Subject.php
CHANGED
@@ -180,22 +180,24 @@ abstract class AAM_Core_Subject {
|
|
180 |
public function getObject($objectType, $id = 'none') {
|
181 |
$object = null;
|
182 |
|
|
|
|
|
183 |
//check if there is an object with specified ID
|
184 |
-
if (!isset($this->_objects[$objectType][$
|
185 |
$classname = 'AAM_Core_Object_' . ucfirst($objectType);
|
186 |
if (class_exists($classname)) {
|
187 |
-
$object = new $classname($this, $
|
188 |
} else {
|
189 |
$object = apply_filters(
|
190 |
-
'aam-object-filter', null, $objectType, $
|
191 |
);
|
192 |
}
|
193 |
|
194 |
if ($object instanceof AAM_Core_Object) {
|
195 |
-
$this->_objects[$objectType][$
|
196 |
}
|
197 |
} else {
|
198 |
-
$object = $this->_objects[$objectType][$
|
199 |
}
|
200 |
|
201 |
return $object;
|
180 |
public function getObject($objectType, $id = 'none') {
|
181 |
$object = null;
|
182 |
|
183 |
+
$nid = (is_scalar($id) ? $id : 'none'); //prevent from any kind of surprises
|
184 |
+
|
185 |
//check if there is an object with specified ID
|
186 |
+
if (!isset($this->_objects[$objectType][$nid])) {
|
187 |
$classname = 'AAM_Core_Object_' . ucfirst($objectType);
|
188 |
if (class_exists($classname)) {
|
189 |
+
$object = new $classname($this, $nid);
|
190 |
} else {
|
191 |
$object = apply_filters(
|
192 |
+
'aam-object-filter', null, $objectType, $nid, $this
|
193 |
);
|
194 |
}
|
195 |
|
196 |
if ($object instanceof AAM_Core_Object) {
|
197 |
+
$this->_objects[$objectType][$nid] = $object;
|
198 |
}
|
199 |
} else {
|
200 |
+
$object = $this->_objects[$objectType][$nid];
|
201 |
}
|
202 |
|
203 |
return $object;
|
aam.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
Plugin Name: Advanced Access Manager
|
5 |
Description: Manage User and Role Access to WordPress Backend and Frontend.
|
6 |
-
Version: 3.1.3
|
7 |
Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
Author URI: http://www.vasyltech.com
|
9 |
|
3 |
/**
|
4 |
Plugin Name: Advanced Access Manager
|
5 |
Description: Manage User and Role Access to WordPress Backend and Frontend.
|
6 |
+
Version: 3.1.3.1
|
7 |
Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
Author URI: http://www.vasyltech.com
|
9 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: vasyltech
|
|
3 |
Tags: access, access manager, role, user, capability, admin, page, post, widget
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 3.1.3
|
7 |
|
8 |
One of the best tools in WordPress repository to manage access to your posts,
|
9 |
pages, categories and backend area for users, roles and visitors.
|
@@ -45,6 +45,9 @@ out more about the Advanced Access Manager.
|
|
45 |
|
46 |
== Changelog ==
|
47 |
|
|
|
|
|
|
|
48 |
= 3.1.3 =
|
49 |
* Fixed bug with default post settings
|
50 |
* Filtering roles and capabilities form malicious code
|
3 |
Tags: access, access manager, role, user, capability, admin, page, post, widget
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 3.1.3.1
|
7 |
|
8 |
One of the best tools in WordPress repository to manage access to your posts,
|
9 |
pages, categories and backend area for users, roles and visitors.
|
45 |
|
46 |
== Changelog ==
|
47 |
|
48 |
+
= 3.1.3.1 =
|
49 |
+
* One more minor issue
|
50 |
+
|
51 |
= 3.1.3 =
|
52 |
* Fixed bug with default post settings
|
53 |
* Filtering roles and capabilities form malicious code
|