Advanced Access Manager - Version 3.1.2

Version Description

  • Quick fix
Download this release

Release Info

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

Code changes from version 3.1.1 to 3.1.2

Files changed (3) hide show
  1. Application/Backend/Filter.php +2 -1
  2. aam.php +1 -1
  3. readme.txt +4 -1
Application/Backend/Filter.php CHANGED
@@ -264,7 +264,8 @@ class AAM_Backend_Filter {
264
  * @access public
265
  */
266
  public function checkUserCap($allCaps, $metaCaps, $args) {
267
- if (is_scalar($args[2])) { //make sure that $args[2] is actually post ID
 
268
  switch($args[0]) {
269
  case 'edit_post':
270
  $object = AAM::getUser()->getObject('post', $args[2]);
264
  * @access public
265
  */
266
  public function checkUserCap($allCaps, $metaCaps, $args) {
267
+ //make sure that $args[2] is actually post ID
268
+ if (isset($args[2]) && is_scalar($args[2])) {
269
  switch($args[0]) {
270
  case 'edit_post':
271
  $object = AAM::getUser()->getObject('post', $args[2]);
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.1
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.2
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.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,6 +45,9 @@ out more about the Advanced Access Manager.
45
 
46
  == Changelog ==
47
 
 
 
 
48
  = 3.1.1 =
49
  * Fixed potential bug with check user capability functionality
50
  * Added social links to the AAM page
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.2
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.2 =
49
+ * Quick fix
50
+
51
  = 3.1.1 =
52
  * Fixed potential bug with check user capability functionality
53
  * Added social links to the AAM page