Advanced Access Manager - Version 5.4.3.1

Version Description

  • Quick fix for the bug that is related to Posts & Terms
Download this release

Release Info

Developer vasyl_m
Plugin Icon 128x128 Advanced Access Manager
Version 5.4.3.1
Comparing to
See all releases

Code changes from version 5.4.3 to 5.4.3.1

Application/Backend/Feature/Main/Post.php CHANGED
@@ -394,7 +394,11 @@ class AAM_Backend_Feature_Main_Post extends AAM_Backend_Feature_Abstract {
394
  //prepare the response object
395
  if (is_a($object, 'AAM_Core_Object')) {
396
  foreach($object->getOption() as $key => $value) {
397
- $access[$key] = in_array($value, array(1, '1', true, "true"), true);
 
 
 
 
398
  }
399
  $metadata = array('overwritten' => $object->isOverwritten());
400
  }
394
  //prepare the response object
395
  if (is_a($object, 'AAM_Core_Object')) {
396
  foreach($object->getOption() as $key => $value) {
397
+ if (in_array($value, array(1, '1', 0, '0', false, "false", true, "true"), true)) {
398
+ $access[$key] = !empty($value);
399
+ } else {
400
+ $access[$key] = $value;
401
+ }
402
  }
403
  $metadata = array('overwritten' => $object->isOverwritten());
404
  }
Application/Core/Object/Post.php CHANGED
@@ -244,8 +244,7 @@ class AAM_Core_Object_Post extends AAM_Core_Object {
244
  public function has($property) {
245
  $option = $this->getOption();
246
 
247
- return (array_key_exists($property, $option)
248
- && in_array($option[$property], array(1, '1', true, "true"), true));
249
  }
250
 
251
  /**
244
  public function has($property) {
245
  $option = $this->getOption();
246
 
247
+ return (array_key_exists($property, $option) && !empty($option[$property]));
 
248
  }
249
 
250
  /**
aam.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: All you need to manage access to your WordPress website
6
- Version: 5.4.3
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: https://vasyltech.com
9
 
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: All you need to manage access to your WordPress website
6
+ Version: 5.4.3.1
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: https://vasyltech.com
9
 
media/js/aam.js CHANGED
@@ -1849,7 +1849,7 @@
1849
  subject: getAAM().getSubject().type,
1850
  subjectId: getAAM().getSubject().id,
1851
  param: param,
1852
- value: (value ? 1 : 0),
1853
  object: object,
1854
  objectId: object_id
1855
  },
@@ -1922,7 +1922,7 @@
1922
  _this.attr('class', 'aam-row-action icon-spin4 animate-spin');
1923
  save(
1924
  _this.data('property'),
1925
- (checked ? true : false),
1926
  object,
1927
  id,
1928
  function(response) {
1849
  subject: getAAM().getSubject().type,
1850
  subjectId: getAAM().getSubject().id,
1851
  param: param,
1852
+ value: value,
1853
  object: object,
1854
  objectId: object_id
1855
  },
1922
  _this.attr('class', 'aam-row-action icon-spin4 animate-spin');
1923
  save(
1924
  _this.data('property'),
1925
+ (checked ? 1 : 0),
1926
  object,
1927
  id,
1928
  function(response) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: vasyltech
3
  Tags: access control, membership, backend menu, user role, restricted content
4
  Requires at least: 4.0
5
  Tested up to: 4.9.7
6
- Stable tag: 5.4.3
7
 
8
  All you need to manage access to you WordPress websites on frontend, backend and API levels for any role, user or visitors.
9
 
@@ -76,6 +76,9 @@ https://www.youtube.com/watch?v=mj5Xa_Wc16Y
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 5.4.3 =
80
  * Fixed the bug with Posts & Terms feature that hides it when Manage Frontend & Backend Access are disabled however API is enabled
81
  * Fixed the bug that cached objects while managing them on AAM page. That was causing inconsistency sometimes
3
  Tags: access control, membership, backend menu, user role, restricted content
4
  Requires at least: 4.0
5
  Tested up to: 4.9.7
6
+ Stable tag: 5.4.3.1
7
 
8
  All you need to manage access to you WordPress websites on frontend, backend and API levels for any role, user or visitors.
9
 
76
 
77
  == Changelog ==
78
 
79
+ = 5.4.3.1 =
80
+ * Quick fix for the bug that is related to Posts & Terms
81
+
82
  = 5.4.3 =
83
  * Fixed the bug with Posts & Terms feature that hides it when Manage Frontend & Backend Access are disabled however API is enabled
84
  * Fixed the bug that cached objects while managing them on AAM page. That was causing inconsistency sometimes